From 14cac0d8926819ea55699761bd29463b935ba9b1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 20:09:28 -0600 Subject: [PATCH] mine load error --- src/engine/objects/Mine.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 435d968f..4a3ad6f8 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -83,7 +83,10 @@ public class Mine extends AbstractGameObject { this.zoneName = this.parentZone.getParent().getName(); }else{ 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 UID: " + rs.getInt("UID")); Logger.error("MINE buildingID: " + buildingID);