From 0a78958e447ff06d9a32498895630845335b0398 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 12:02:37 -0400 Subject: [PATCH] Debugging region --- src/engine/net/client/msg/LoadCharacterMsg.java | 3 +-- src/engine/objects/NPC.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/msg/LoadCharacterMsg.java b/src/engine/net/client/msg/LoadCharacterMsg.java index be53a960..7dff7d18 100644 --- a/src/engine/net/client/msg/LoadCharacterMsg.java +++ b/src/engine/net/client/msg/LoadCharacterMsg.java @@ -73,8 +73,7 @@ public class LoadCharacterMsg extends ClientNetMsg { if (absChar != null && absChar.getObjectType() == GameObjectType.NPC) { NPC npc = (NPC) absChar; - - if (npc.building != null) { + if (npc.region != null) { writer.putInt(npc.getRegion().getLevel()); writer.putInt(npc.getRegion().getRoom()); } else { diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 85eb4787..2c8ff9f6 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -90,7 +90,7 @@ public class NPC extends AbstractCharacter { private String nameOverride = ""; private int equipmentSetID = 0; public int runeSetID = 0; - private Regions region = null; + public Regions region = null; private int repairCost = 5; public int extraRune2 = 0;