@ -69,10 +69,12 @@ public class dbBuildingHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery();
if (rs.next()) {
int objectUUID = (int) rs.getLong("UID");
if (objectUUID > 0)
building = GET_BUILDINGBYUUID(objectUUID);
}
} catch (SQLException e) {
throw new RuntimeException(e);
@ -433,11 +433,12 @@ public class dbGuildHandler extends dbHandlerBase {
guild = GET_GUILD(objectUUID);
Logger.error(e);
@ -95,11 +95,12 @@ public class dbItemHandler extends dbHandlerBase {
return GET_ITEM(objectUUID);
@ -57,11 +57,12 @@ public class dbMobHandler extends dbHandlerBase {
mobile = GET_MOB(objectUUID);
@ -56,11 +56,12 @@ public class dbNPCHandler extends dbHandlerBase {
npc = GET_NPC(objectUUID);
@ -61,11 +61,13 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
playerCharacter = GET_PLAYER_CHARACTER(objectUUID);