BuildingModelBase no longer needed.

This commit is contained in:
MagicBot committed 2023-04-29 15:15:23 -04:00
1 parent cace195e18
commit d454878245
7 files changed
+15 -198

No files matched your search

-20
View File
@@ -1448,26 +1448,6 @@ public class NPC extends AbstractCharacter {
return equip;
}
public static int getBuildingSlot(NPC npc){
int slot = -1;
if (npc.building == null)
return -1;
BuildingModelBase buildingModel = BuildingModelBase.getModelBase(npc.building.getMeshUUID());
if (buildingModel == null)
return -1;
if (npc.building.getHirelings().containsKey(npc))
slot = (npc.building.getHirelings().get(npc));
if (buildingModel.getNPCLocation(slot) == null)
return -1;
return slot;
}
public int getEquipmentSetID() {
return equipmentSetID;
}