Got started on SWGObject awareness

This commit is contained in:
Obique
2014-12-08 13:03:01 -06:00
committed by Obique
parent 384129e059
commit 14b4bad6ed
5 changed files with 10 additions and 12 deletions
+1 -2
View File
@@ -116,10 +116,9 @@ public class ZoneService extends Service {
try {
createCharacter.setLong(1, characterId);
createCharacter.setString(2, create.getName());
createCharacter.setString(3, create.getRace());
createCharacter.setString(3, ((CreatureObject)player.getCreatureObject()).getRace().getFilename());
createCharacter.setInt(4, player.getUserId());
createCharacter.setInt(5, player.getGalaxyId());
System.out.println("Galaxy ID: " + player.getGalaxyId());
if (createCharacter.executeUpdate() != 1) {
System.err.println("ZoneService: Unable to create character and put into database!");
sendPacket(player, new CreateCharacterFailure(NameFailureReason.NAME_RETRY));