Fixed loading issue for SWGObject ODB, and removed the Creature ODB

This commit is contained in:
Obique
2014-08-08 20:53:11 -05:00
parent bc8f2544ee
commit 61d699010b
4 changed files with 7 additions and 52 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ public class CharacterService implements INetworkDispatch {
//core.scriptService.callScript("scripts/", "demo", "CreateStartingCharacter", core, object);
System.out.println("Saving character with name: " + object.getCustomName());
core.getCreatureODB().put(object.getObjectID(), object);
core.getSWGObjectODB().put(object.getObjectID(), object);
PreparedStatement ps = databaseConnection.preparedStatement("INSERT INTO characters (id, \"firstName\", \"lastName\", \"accountId\", \"galaxyId\", \"statusId\", appearance, gmflag) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
ps.setLong(1, object.getObjectID());