Browse Source

mine load error

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
14cac0d892
  1. 5
      src/engine/objects/Mine.java

5
src/engine/objects/Mine.java

@ -83,7 +83,10 @@ public class Mine extends AbstractGameObject {
this.zoneName = this.parentZone.getParent().getName(); this.zoneName = this.parentZone.getParent().getName();
}else{ }else{
this.parentZone = ZoneManager.getSeaFloor(); this.parentZone = ZoneManager.getSeaFloor();
this.zoneName = this.parentZone.getParent().getName(); if(this.parentZone.getParent() != null)
this.zoneName = this.parentZone.getParent().getName();
else
this.zoneName = "FAILED TO LOAD ZONE";
Logger.error("MINE FAILED TO LOAD PARENT: "); Logger.error("MINE FAILED TO LOAD PARENT: ");
Logger.error("MINE UID: " + rs.getInt("UID")); Logger.error("MINE UID: " + rs.getInt("UID"));
Logger.error("MINE buildingID: " + buildingID); Logger.error("MINE buildingID: " + buildingID);

Loading…
Cancel
Save