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