From 58035d0f935a7b95d9ffed1fbc04e439aad6eefc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 30 Apr 2024 20:45:29 -0500 Subject: [PATCH] zone loading --- src/engine/db/handlers/dbMineHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/db/handlers/dbMineHandler.java b/src/engine/db/handlers/dbMineHandler.java index 72b5befb..642dd3b1 100644 --- a/src/engine/db/handlers/dbMineHandler.java +++ b/src/engine/db/handlers/dbMineHandler.java @@ -9,6 +9,7 @@ package engine.db.handlers; import engine.Enum; +import engine.gameManager.BuildingManager; import engine.gameManager.DbManager; import engine.objects.Mine; import engine.objects.MineProduction; @@ -87,6 +88,9 @@ public class dbMineHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery(); while(rs.next()){ + if(BuildingManager.getBuildingFromCache(rs.getInt("mine_buildingUID")) == null) + continue; + mines.add(new Mine(rs)); }