diff --git a/src/engine/db/handlers/dbMobHandler.java b/src/engine/db/handlers/dbMobHandler.java index 1af8a770..766335ff 100644 --- a/src/engine/db/handlers/dbMobHandler.java +++ b/src/engine/db/handlers/dbMobHandler.java @@ -28,7 +28,7 @@ public class dbMobHandler extends dbHandlerBase { this.localObjectType = engine.Enum.GameObjectType.valueOf(this.localClass.getSimpleName()); } - public Mob ADD_MOB(Mob toAdd) { + public Mob PERSIST(Mob toAdd) { Mob mobile = null; diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 6e52c1dd..316f8b9a 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -427,7 +427,7 @@ public class Mob extends AbstractIntelligenceAgent { Mob mob; try { - mob = DbManager.MobQueries.ADD_MOB(mobile); + mob = DbManager.MobQueries.PERSIST(mobile); } catch (Exception e) { Logger.error("SQLException:" + e.getMessage());