trouble shooting mine bug
This commit is contained in:
@@ -78,8 +78,17 @@ public class Mine extends AbstractGameObject {
|
|||||||
this.buildingID = rs.getInt("mine_buildingUID");
|
this.buildingID = rs.getInt("mine_buildingUID");
|
||||||
this.flags = rs.getInt("flags");
|
this.flags = rs.getInt("flags");
|
||||||
int parent = rs.getInt("parent");
|
int parent = rs.getInt("parent");
|
||||||
this.parentZone = ZoneManager.getZoneByUUID(parent);
|
if(ZoneManager.getZoneByUUID(parent) != null) {
|
||||||
this.zoneName = this.parentZone.getParent().getName();
|
this.parentZone = ZoneManager.getZoneByUUID(parent);
|
||||||
|
this.zoneName = this.parentZone.getParent().getName();
|
||||||
|
}else{
|
||||||
|
this.parentZone = ZoneManager.getSeaFloor();
|
||||||
|
this.zoneName = this.parentZone.getParent().getName();
|
||||||
|
Logger.error("MINE FAILED TO LOAD PARENT: ");
|
||||||
|
Logger.error("MINE UID: " + rs.getInt("UID"));
|
||||||
|
Logger.error("MINE buildingID: " + buildingID);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
this.owningGuild = Guild.getGuild(ownerUID);
|
this.owningGuild = Guild.getGuild(ownerUID);
|
||||||
Guild nation = null;
|
Guild nation = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user