From 4723eb4bf2e0ce817716953b12aea8e8ba160a11 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 07:56:25 -0400 Subject: [PATCH] Serialization update. --- src/engine/net/client/msg/ManageNPCMsg.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index 1b33d6d7..7c4d6647 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -461,13 +461,9 @@ public class ManageNPCMsg extends ClientNetMsg { else writer.putInt(-1497023830); - if (!item.isComplete()) { - writer.putInt(0); - writer.putInt(0); - } else { - writer.putInt(item.prefixToken); - writer.putInt(item.suffixToken); - } + writer.putInt(item.prefixToken); + writer.putInt(item.suffixToken); + writer.putString(item.name); }