added check to see if dimension already registered

-this stops errors on player logout and login without shutting down
client.
This commit is contained in:
Steve 2015-06-27 21:55:11 -07:00 committed by CannibalVox
parent 2b411ce4cf
commit 2dea8e1a13

View file

@ -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
{