diff options
author | Owen <[email protected]> | 2024-04-12 17:16:22 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-12 17:16:22 -0400 |
commit | 4445d23544e0801fb6f658de98815ce0d8c04f58 (patch) | |
tree | 47f3143abe92b79aaa06c34ed21f5b2a198b3512 /patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch | |
parent | 326347031287b483850190068efc3ee9994ab970 (diff) | |
download | Paper-4445d23544e0801fb6f658de98815ce0d8c04f58.tar.gz Paper-4445d23544e0801fb6f658de98815ce0d8c04f58.zip |
Deprecate ItemStack#setType & add ItemStack#withType (#10290)
Diffstat (limited to 'patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch')
-rw-r--r-- | patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch b/patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch index 8d4f6df398..0e54130972 100644 --- a/patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch +++ b/patches/server/0840-Remove-CraftItemStack-setAmount-null-assignment.patch @@ -16,10 +16,10 @@ with less than zero amounts, so this code doesn't create a problem with operations on the vanilla ItemStack. diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java -index 6725c0824b986885c8aade846f6e159986ffbe59..312e756843f62371048a4d8de9deb024bd9846a7 100644 +index 6b75314023adf313937990e31323dff9bacc564b..fb2e4881096459eff16a7c46faa9921166837ee9 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java -@@ -157,7 +157,7 @@ public final class CraftItemStack extends ItemStack { +@@ -161,7 +161,7 @@ public final class CraftItemStack extends ItemStack { } this.handle.setCount(amount); |