forked from MagicBane/Server
Error trap
This commit is contained in:
@@ -77,7 +77,10 @@ public class Zone extends AbstractGameObject {
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public Zone(ResultSet rs) throws SQLException {
|
||||
|
||||
super(rs);
|
||||
|
||||
try {
|
||||
this.parentZoneID = rs.getInt("parent");
|
||||
this.playerCityUUID = rs.getInt("playerCityUUID");
|
||||
this.guild_zone = this.playerCityUUID != 0;
|
||||
@@ -127,13 +130,16 @@ public class Zone extends AbstractGameObject {
|
||||
|
||||
if (parentZone != null)
|
||||
parentZone.addNode(this);
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
// If zone doesn't yet hava a hash then write it back to the zone table
|
||||
|
||||
if (hash == null)
|
||||
setHash();
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static void serializeForClientMsg(Zone zone, ByteBufferWriter writer) {
|
||||
|
||||
Reference in New Issue
Block a user