From 40eba8346804eacf5027968eb4b80c99453772d4 Mon Sep 17 00:00:00 2001 From: sekwah Date: Thu, 22 Feb 2018 03:17:16 +0000 Subject: [PATCH] Added saving on create --- .../advancedportals/core/api/managers/DestinationManager.java | 1 + .../sekwah/advancedportals/core/api/managers/PortalManager.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/com/sekwah/advancedportals/core/api/managers/DestinationManager.java b/src/com/sekwah/advancedportals/core/api/managers/DestinationManager.java index 5f8b0fca..84550488 100644 --- a/src/com/sekwah/advancedportals/core/api/managers/DestinationManager.java +++ b/src/com/sekwah/advancedportals/core/api/managers/DestinationManager.java @@ -47,6 +47,7 @@ public class DestinationManager { } } this.destiHashMap.put(name, desti); + AdvancedPortalsCore.getDestinationManager().saveDestinations(); return desti; } diff --git a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java index 96c634f0..3294197d 100644 --- a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java +++ b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java @@ -172,6 +172,7 @@ public class PortalManager { } this.portalHashMap.put(name, portal); this.updatePortalArray(); + AdvancedPortalsCore.getPortalManager().savePortals(); return portal; }