|
|
@ -9,6 +9,7 @@ |
|
|
|
package engine.db.handlers; |
|
|
|
package engine.db.handlers; |
|
|
|
|
|
|
|
|
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum; |
|
|
|
|
|
|
|
import engine.gameManager.BuildingManager; |
|
|
|
import engine.gameManager.DbManager; |
|
|
|
import engine.gameManager.DbManager; |
|
|
|
import engine.objects.Mine; |
|
|
|
import engine.objects.Mine; |
|
|
|
import engine.objects.MineProduction; |
|
|
|
import engine.objects.MineProduction; |
|
|
@ -87,6 +88,9 @@ public class dbMineHandler extends dbHandlerBase { |
|
|
|
|
|
|
|
|
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
while(rs.next()){ |
|
|
|
while(rs.next()){ |
|
|
|
|
|
|
|
if(BuildingManager.getBuildingFromCache(rs.getInt("mine_buildingUID")) == null) |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
mines.add(new Mine(rs)); |
|
|
|
mines.add(new Mine(rs)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|