BuildingModelBase no longer needed.

This commit is contained in:
2023-04-29 15:15:23 -04:00
parent cace195e18
commit d454878245
7 changed files with 15 additions and 198 deletions
-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;
}