diff options
Diffstat (limited to 'patches/server/0570-Expose-protocol-version.patch')
-rw-r--r-- | patches/server/0570-Expose-protocol-version.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0570-Expose-protocol-version.patch b/patches/server/0570-Expose-protocol-version.patch index 213d964b4d..fad23f6e40 100644 --- a/patches/server/0570-Expose-protocol-version.patch +++ b/patches/server/0570-Expose-protocol-version.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Expose protocol version diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java -index 2039442d5d7f99e6589e4625a76ebbc62944d018..aed137c6857190e6dad62ab70ae0be3613f3bea3 100644 +index 38dbbc1977aa29292a89e8f9d8baf6030d89d7d1..35484b3ad8a767b4d74ca926d9d8610d142624a1 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java +++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java -@@ -524,6 +524,11 @@ public final class CraftMagicNumbers implements UnsafeValues { +@@ -537,6 +537,11 @@ public final class CraftMagicNumbers implements UnsafeValues { public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack) { return io.papermc.paper.inventory.ItemRarity.values()[getItem(itemStack.getType()).getRarity(CraftItemStack.asNMSCopy(itemStack)).ordinal()]; } |