Browse Source

Method renamed for new convention.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
e3ad7efa4f
  1. 2
      src/engine/db/handlers/dbMobHandler.java
  2. 2
      src/engine/objects/Mob.java

2
src/engine/db/handlers/dbMobHandler.java

@ -28,7 +28,7 @@ public class dbMobHandler extends dbHandlerBase { @@ -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;

2
src/engine/objects/Mob.java

@ -427,7 +427,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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());

Loading…
Cancel
Save