Refactor to remove abstraction

This commit is contained in:
2023-05-22 06:35:24 -04:00
parent dc9a6fc825
commit 2cdb2fce42
4 changed files with 23 additions and 122 deletions
+1 -13
View File
@@ -206,20 +206,8 @@ public class MobBase extends AbstractGameObject {
return this.spawnTime;
}
/*
* Database
*/
public static MobBase getMobBase(int id) {
return MobBase.getMobBase(id, false);
}
public static MobBase getMobBase(int id, boolean forceDB) {
return DbManager.MobBaseQueries.GET_MOBBASE(id, forceDB);
}
public static boolean renameMobBase(int ID, String newName) {
return DbManager.MobBaseQueries.RENAME_MOBBASE(ID, newName);
return DbManager.MobBaseQueries.GET_MOBBASE(id);
}
@Override