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:
parent
2b411ce4cf
commit
2dea8e1a13
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue