Browse Source

fix for mines loading

lakebane-new
FatBoy-DOTC 7 months ago
parent
commit
3228f473de
  1. 3
      src/engine/db/handlers/dbHandlerBase.java

3
src/engine/db/handlers/dbHandlerBase.java

@ -62,6 +62,9 @@ public abstract class dbHandlerBase {
} else { } else {
AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs); AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs);
DbManager.addToCache(toAdd); DbManager.addToCache(toAdd);
if(toAdd.getObjectType().equals(GameObjectType.Mine) && rs.getInt("mineLiveHour") == 1){
continue;
}
if(toAdd.getObjectType().equals(GameObjectType.Zone) && rs.getInt("canLoad") == 0){ if(toAdd.getObjectType().equals(GameObjectType.Zone) && rs.getInt("canLoad") == 0){
continue; continue;
} }

Loading…
Cancel
Save