Browse Source

fix for mines loading

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
8b4d37c53c
  1. 6
      src/engine/db/handlers/dbHandlerBase.java

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

@ -60,9 +60,11 @@ public abstract class dbHandlerBase { @@ -60,9 +60,11 @@ public abstract class dbHandlerBase {
if (DbManager.inCache(localObjectType, id)) {
objectList.add((T) DbManager.getFromCache(localObjectType, id));
} else {
int mineLiveHour = rs.getInt("mineLiveHour");
if (!rs.wasNull() && mineLiveHour == 1) {
try{
if(rs.getInt("mineLiveHour") == 1)
continue;
}catch(Exception e){
//not a mine
}
AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs);
DbManager.addToCache(toAdd);

Loading…
Cancel
Save