|
|
|
@ -33,8 +33,14 @@ public abstract class dbHandlerBase {
@@ -33,8 +33,14 @@ public abstract class dbHandlerBase {
|
|
|
|
|
if (rs.next()) { |
|
|
|
|
abstractGameObject = localClass.getConstructor(ResultSet.class).newInstance(rs); |
|
|
|
|
|
|
|
|
|
if(abstractGameObject.getObjectType().equals(GameObjectType.Zone)){ |
|
|
|
|
if(rs.getInt("canLoad") == 1){ |
|
|
|
|
DbManager.addToCache(abstractGameObject); |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
DbManager.addToCache(abstractGameObject); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Logger.error(e); |
|
|
|
|
} |
|
|
|
|