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,8 +305,10 @@ public class PocketManager
|
|||
{
|
||||
if (personalPocketsMapping.containsValue(dimension))
|
||||
{
|
||||
if (!DimensionManager.isDimensionRegistered(dimension.id())){
|
||||
DimensionManager.registerDimension(dimension.id(), properties.PersonalPocketProviderID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DimensionManager.registerDimension(dimension.id(), properties.PocketProviderID);
|
||||
|
|
Loading…
Reference in a new issue