From 3ec985e3d9360effdb5a95baa579cca9239629f4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 11 Jan 2023 15:00:52 -0500 Subject: [PATCH] bugfix: window should not end for a mine not opened. --- src/engine/objects/Mine.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 6482ead9..de26a814 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -519,6 +519,11 @@ try{ public boolean handleEndMineWindow(){ + // No need to end the window of a mine which never opened. + + if (this.isActive == false) + return false; + Building mineBuilding = BuildingManager.getBuildingFromCache(this.buildingID); if (mineBuilding == null){