Skip to content

Commit

Permalink
Fix metadata not storing for loaded portals
Browse files Browse the repository at this point in the history
(Portals loaded from database)
  • Loading branch information
Thorinwasher committed Jan 13, 2024
1 parent 0d844c5 commit 42bdc88
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ private void registerPortalGate(PortalData portalData, Network network, Stargate
}
gate.addPortalPositions(portalPositions);
RealPortal portal = PortalCreationHelper.createPortal(network, portalData, gate, stargateAPI);
if(portal instanceof AbstractPortal abstractPortal){
abstractPortal.setSavedToStorage();
}
gate.assignPortal(portal);
network.addPortal(portal);
Stargate.log(Level.FINEST, "Added as normal portal");
Expand Down

0 comments on commit 42bdc88

Please sign in to comment.