mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-01-17 00:05:17 -05:00
Changed the name of two methods to be more conventional
This commit is contained in:
@@ -35,8 +35,8 @@ public class DeleteCharacterMessage extends SWGMessage {
|
||||
|
||||
}
|
||||
|
||||
public int getgalaxyId() { return galaxyId; }
|
||||
public long getcharId() { return charId; }
|
||||
public int getGalaxyId() { return galaxyId; }
|
||||
public long getCharId() { return charId; }
|
||||
|
||||
public void deserialize(IoBuffer data) {
|
||||
|
||||
|
||||
@@ -212,17 +212,17 @@ public class LoginService implements INetworkDispatch{
|
||||
PreparedStatement preparedStatement;
|
||||
|
||||
preparedStatement = databaseConnection1.preparedStatement("DELETE FROM characters WHERE \"id\"=? AND \"galaxyId\"=? AND \"accountId\"=?");
|
||||
preparedStatement.setLong(1, packet.getcharId());
|
||||
preparedStatement.setInt(2, packet.getgalaxyId());
|
||||
preparedStatement.setLong(1, packet.getCharId());
|
||||
preparedStatement.setInt(2, packet.getGalaxyId());
|
||||
preparedStatement.setInt(3, (int) client.getAccountId());
|
||||
boolean resultSet = preparedStatement.execute();
|
||||
|
||||
//TODO: send deletecharacter failed
|
||||
if(!resultSet) {
|
||||
CreatureObject object = (CreatureObject) core.objectService.getObject(packet.getcharId());
|
||||
CreatureObject object = (CreatureObject) core.objectService.getObject(packet.getCharId());
|
||||
|
||||
if (object == null)
|
||||
object = (CreatureObject) core.objectService.getCreatureFromDB(packet.getcharId());
|
||||
object = (CreatureObject) core.objectService.getCreatureFromDB(packet.getCharId());
|
||||
|
||||
if (object != null) {
|
||||
if (object.isInQuadtree() && object.getClient() != null) {
|
||||
|
||||
Reference in New Issue
Block a user