fixed NPC interaction

This commit is contained in:
2024-12-29 18:37:42 -06:00
parent e66e430d30
commit 14a29c8612
2 changed files with 2 additions and 2 deletions
@@ -128,7 +128,7 @@ public class VendorDialogMsg extends ClientNetMsg {
if (contract == null)
vd = VendorDialog.getHostileVendorDialog();
else if (npc.getBuilding() != null) {
if (BuildingManager.IsPlayerHostile(npc.getBuilding(), playerCharacter))
if (npc.getBuilding() != null && BuildingManager.IsPlayerHostile(npc.getBuilding(), playerCharacter))
vd = VendorDialog.getHostileVendorDialog();
else
vd = contract.getVendorDialog();