From 2dea8e1a1354b921ee27ef98de537178a3c711c8 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 27 Jun 2015 21:55:11 -0700 Subject: [PATCH] added check to see if dimension already registered -this stops errors on player logout and login without shutting down client. --- .../java/StevenDimDoors/mod_pocketDim/core/PocketManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/core/PocketManager.java b/src/main/java/StevenDimDoors/mod_pocketDim/core/PocketManager.java index a476e365..a1c9f29b 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/core/PocketManager.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/core/PocketManager.java @@ -305,7 +305,9 @@ public class PocketManager { if (personalPocketsMapping.containsValue(dimension)) { - DimensionManager.registerDimension(dimension.id(), properties.PersonalPocketProviderID); + if (!DimensionManager.isDimensionRegistered(dimension.id())){ + DimensionManager.registerDimension(dimension.id(), properties.PersonalPocketProviderID); + } } else {