Fixes the order in which the portal's button is updated to fix one of the bugs in #15
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f90a09143f
commit
ee0e66e9be
@ -261,12 +261,12 @@ public final class PortalFileHelper {
|
|||||||
Portal portal = new Portal(portalLocation, button, destination, name, network, gate, owner,
|
Portal portal = new Portal(portalLocation, button, destination, name, network, gate, owner,
|
||||||
PortalHandler.getPortalOptions(portalData));
|
PortalHandler.getPortalOptions(portalData));
|
||||||
|
|
||||||
|
//Update the portal's button if it's the wrong material
|
||||||
|
updatePortalButton(portal);
|
||||||
|
|
||||||
//Register the portal, and close it in case it wasn't properly closed when the server stopped
|
//Register the portal, and close it in case it wasn't properly closed when the server stopped
|
||||||
PortalHandler.registerPortal(portal);
|
PortalHandler.registerPortal(portal);
|
||||||
portal.getPortalOpener().closePortal(true);
|
portal.getPortalOpener().closePortal(true);
|
||||||
|
|
||||||
//Update the portal's button if it's the wrong material
|
|
||||||
updatePortalButton(portal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user