From 42bdc886c6bd3b802ea12767b2eaf0a1e20d0998 Mon Sep 17 00:00:00 2001 From: Thorinwasher Date: Sat, 13 Jan 2024 15:24:17 +0100 Subject: [PATCH] Fix metadata not storing for loaded portals (Portals loaded from database) --- .../java/org/sgrewritten/stargate/database/SQLDatabase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/sgrewritten/stargate/database/SQLDatabase.java b/src/main/java/org/sgrewritten/stargate/database/SQLDatabase.java index aaf0aebe..7575dd9b 100644 --- a/src/main/java/org/sgrewritten/stargate/database/SQLDatabase.java +++ b/src/main/java/org/sgrewritten/stargate/database/SQLDatabase.java @@ -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");