Warehosue cleanup

This commit is contained in:
2024-01-24 20:21:41 -06:00
parent cc1e0d8986
commit c0ee8b82f8
18 changed files with 931 additions and 969 deletions
+2 -2
View File
@@ -224,7 +224,7 @@ public enum BuildingManager {
break;
case WAREHOUSE:
Warehouse warehouse = WarehouseManager.warehouseByBuildingUUID.get(building.getObjectUUID());
Warehouse warehouse = Warehouse.warehouseByBuildingUUID.get(building.getObjectUUID());
if (warehouse == null)
return false;
@@ -242,7 +242,7 @@ public enum BuildingManager {
if (resourceAmount <= 0)
continue;
if (WarehouseManager.loot(warehouse, player, resourceBase, resourceAmount, true))
if (Warehouse.loot(warehouse, player, resourceBase, resourceAmount, true))
ChatManager.chatInfoInfo(player, "You have looted " + resourceAmount + ' ' + resourceBase.getName());
}
break;