From 353cd0ab2350b9b22d8d01c3c81c8f51b5551dc8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 11:24:32 -0400 Subject: [PATCH] Serialization revert. --- src/engine/net/client/msg/LoadCharacterMsg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/LoadCharacterMsg.java b/src/engine/net/client/msg/LoadCharacterMsg.java index 706026e9..be53a960 100644 --- a/src/engine/net/client/msg/LoadCharacterMsg.java +++ b/src/engine/net/client/msg/LoadCharacterMsg.java @@ -74,7 +74,7 @@ public class LoadCharacterMsg extends ClientNetMsg { NPC npc = (NPC) absChar; - if (npc.getRegion() != null) { + if (npc.building != null) { writer.putInt(npc.getRegion().getLevel()); writer.putInt(npc.getRegion().getRoom()); } else {