From f670e3143c313fc74a75b3edb7b34041f140e32c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 11 May 2024 10:52:31 -0400 Subject: [PATCH] Serialization update --- src/engine/net/client/msg/ManageNPCMsg.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index caf2bb87..fcef1d65 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -461,10 +461,15 @@ public class ManageNPCMsg extends ClientNetMsg { // if ((item.prefixToken == 0 && item.suffixToken == 0)) // writer.putInt(0); // else - // writer.putInt(-1497023830); + // writer.putInt(-1497023830); ItemFlag.Magic? - writer.putInt(item.prefixToken); - writer.putInt(item.suffixToken); + if (item.flags.contains(mbEnums.ItemFlags.Identified)) { + writer.putInt(item.prefixToken); + writer.putInt(item.suffixToken); + } else { + writer.putInt(0); + writer.putInt(0); + } writer.putString(item.name); }