diff options
author | Nassim Jahnke <[email protected]> | 2024-06-29 10:58:37 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-29 10:58:37 +0200 |
commit | aa8d38d3dbab3cb0021d0f24f726818caf77bf15 (patch) | |
tree | 9d2e7eeef5f00a62f55a6ee0f242abb810ee083b /patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch | |
parent | 1f5db504244fe6563ab32cee646dad0c53360e01 (diff) | |
download | Paper-aa8d38d3dbab3cb0021d0f24f726818caf77bf15.tar.gz Paper-aa8d38d3dbab3cb0021d0f24f726818caf77bf15.zip |
Add forRemoval to material data deprecations (#10996)
2018 is calling
Diffstat (limited to 'patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch')
-rw-r--r-- | patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch b/patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch index 72deb7498e..bdb434071d 100644 --- a/patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch +++ b/patches/api/0429-Remove-unnecessary-durability-check-in-ItemStack-isS.patch @@ -9,7 +9,7 @@ By removing this check we avoid unnecessarily allocating useless `ItemMeta` obje This is a leftover from when checking for the item's durability was "free" because the durability was stored in the `ItemStack` itself, this [was changed in Minecraft 1.13](https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/f8b2086d60942eb2cd7ac25a2a1408cb790c222c#src/main/java/org/bukkit/inventory/ItemStack.java). diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java -index 9d397c395d777f337a421fac8fea064680065661..c5e22bca27f3199eb2a466f41aa82047f5fd0e44 100644 +index 5b918d510b9c8a6f8c6d146e90e1d0ef4a204b5a..13d035ace9fbe93c3754595ac6cadbfbe30062a5 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java @@ -307,7 +307,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat |