From f18d78282ddb2f09f92b3095d43fd35630b4fec4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 18 Jul 2018 14:01:15 +1000 Subject: SPIGOT-4028: Improve legacy ItemStack conversion --- nms-patches/ItemStack.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches') 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); + } + } -- cgit v1.2.3