De-activates an unregistered portal to prevent its sign to be re-drawn if destroyed while activated

This commit is contained in:
Kristian Knarvik 2021-11-07 13:40:12 +01:00
parent 527562bc60
commit 1565707809

View File

@ -162,6 +162,7 @@ public class PortalRegistry {
*/
public static void unregisterPortal(Portal portal, boolean removeAll) {
Stargate.debug("Unregister", "Unregistering gate " + portal.getName());
portal.getPortalActivator().deactivate();
portal.getPortalOpener().closePortal(true);
String portalName = portal.getName().toLowerCase();