duplicated zone loading disabled

This commit is contained in:
2024-06-11 19:47:34 -05:00
parent e98f9cf1f7
commit 395fe31e02
3 changed files with 6 additions and 8 deletions
+1 -8
View File
@@ -32,14 +32,7 @@ public abstract class dbHandlerBase {
try {
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);
}
DbManager.addToCache(abstractGameObject);
}
} catch (Exception e) {
Logger.error(e);