diff options
author | Nassim Jahnke <[email protected]> | 2024-04-04 16:52:26 +0200 |
---|---|---|
committer | Bjarne Koll <[email protected]> | 2024-05-27 00:39:51 +0200 |
commit | 0d1bfa40d3227b0acbea50732aa77997811b2cdb (patch) | |
tree | 2029f0503fb8751eb864925f548d2ac00aa0e7d1 /patches/api/0280-ItemStack-editMeta.patch | |
parent | 347bbe389786d5cdae7cd1c6ec32cacba2a9aac7 (diff) | |
download | Paper-0d1bfa40d3227b0acbea50732aa77997811b2cdb.tar.gz Paper-0d1bfa40d3227b0acbea50732aa77997811b2cdb.zip |
Add ItemStack array serialization methodsweee
Serializing multiple items to bytes isn't trivial, so often beginners fall into the trap of using output IO streams and Bukkit serialization instead, so these provide helpful extra methods to deal with item arrays.
Diffstat (limited to 'patches/api/0280-ItemStack-editMeta.patch')
-rw-r--r-- | patches/api/0280-ItemStack-editMeta.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0280-ItemStack-editMeta.patch b/patches/api/0280-ItemStack-editMeta.patch index c1ce9b264d..d6493519a5 100644 --- a/patches/api/0280-ItemStack-editMeta.patch +++ b/patches/api/0280-ItemStack-editMeta.patch @@ -5,10 +5,10 @@ Subject: [PATCH] ItemStack#editMeta diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java -index ca2dac7b377ea098158ff3c84fd47f405b636869..5fb8f7c1b79bd256925cb68cccfe0b974fb84043 100644 +index 6edc6f2c38f0e063929d368b37f2ce9b8422c56a..2e98a00627df169cb4ef6bb5c48b9d40f985f785 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java -@@ -567,6 +567,50 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat +@@ -568,6 +568,50 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat return result.ensureServerConversions(); // Paper } |