PacketHandlerServer:

-Fixed custom items not updating scripted data
This commit is contained in:
Luis C.M committed 2023-06-01 17:53:08 -05:00
1 parent 598e8ede7c
commit 9c5d5a8d73
1 file changed
+1 -2
@@ -306,9 +306,8 @@ public class PacketHandlerServer{
NBTTagCompound compound = Server.readNBT(buffer);
ScriptCustomItem wrapper = (ScriptCustomItem) NpcAPI.Instance().getIItemStack(player.getHeldItem());
wrapper.setMCNbt(compound);
wrapper.loadScriptData();
wrapper.loaded = false;
wrapper.saveScriptData();
wrapper.loaded = false;
player.sendContainerToPlayer(player.inventoryContainer);
}
}