From f1a652122cf206330ed687766195273ab93e652c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 15 Feb 2023 13:38:13 -0500 Subject: [PATCH] Portals configured in the runegate constructor. --- src/engine/objects/Runegate.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Runegate.java b/src/engine/objects/Runegate.java index f55b48de..59da6d10 100644 --- a/src/engine/objects/Runegate.java +++ b/src/engine/objects/Runegate.java @@ -27,6 +27,10 @@ public class Runegate { this._portals = new Portal[8]; this.gateBuilding = gateBuilding; + // Load portals for this runegate portals from the database + + configurePortals(); + // Chaos, Khar and Oblivion are on by default _portals[Enum.PortalType.CHAOS.ordinal()].activate(false); @@ -74,7 +78,6 @@ public class Runegate { Building gateBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, gateID); Runegate runegate = new Runegate(gateBuilding); - runegate.configurePortals(); _runegates.put(gateID, runegate); }