diff options
author | md_5 <git@md-5.net> | 2018-07-18 14:01:15 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-18 14:01:15 +1000 |
commit | f18d78282ddb2f09f92b3095d43fd35630b4fec4 (patch) | |
tree | e1da33ff98b2d85522b2da338fcbab2453601288 /nms-patches | |
parent | de019a35f009518bbabb3f39383e374cf8aae799 (diff) | |
download | craftbukkit-f18d78282ddb2f09f92b3095d43fd35630b4fec4.tar craftbukkit-f18d78282ddb2f09f92b3095d43fd35630b4fec4.tar.gz craftbukkit-f18d78282ddb2f09f92b3095d43fd35630b4fec4.tar.lz craftbukkit-f18d78282ddb2f09f92b3095d43fd35630b4fec4.tar.xz craftbukkit-f18d78282ddb2f09f92b3095d43fd35630b4fec4.zip |
SPIGOT-4028: Improve legacy ItemStack conversion
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/ItemStack.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/ItemStack.patch b/nms-patches/ItemStack.patch index 672002cd..cddce628 100644 --- a/nms-patches/ItemStack.patch +++ b/nms-patches/ItemStack.patch @@ -30,7 +30,7 @@ + if (MinecraftServer.getServer() != null) { + NBTTagCompound savedStack = new NBTTagCompound(); + this.save(savedStack); -+ MinecraftServer.getServer().dataConverterManager.update(DataConverterTypes.ITEM_STACK, new Dynamic(DynamicOpsNBT.a, savedStack), -1, CraftMagicNumbers.DATA_VERSION); ++ // MinecraftServer.getServer().dataConverterManager.update(DataConverterTypes.ITEM_STACK, new Dynamic(DynamicOpsNBT.a, savedStack), -1, CraftMagicNumbers.DATA_VERSION); // This changed late in development and hasn't been doing anything. Needs to be fixed. + this.load(savedStack); + } + } |