Fixes #18
On startup, existing sub-dimensions of personal dimensions were being given the wrong worldprovider by the launch code. The reason for this is that subdimensions are not added to the player -> dimension mapping for personal dimensions, because there is only one canonical "personal" dimension. The launch code was using presence or absence in the mapping to determine whether a dimension is personal, rather than the dimension type. This is now fixed.
This commit is contained in:
parent
27d17d86a1
commit
dacc736508
1 changed files with 7 additions and 1 deletions
|
@ -90,8 +90,14 @@ public class PocketProvider extends WorldProvider
|
|||
@Override
|
||||
protected void generateLightBrightnessTable()
|
||||
{
|
||||
if (!PocketManager.isLoaded())
|
||||
{
|
||||
super.generateLightBrightnessTable();
|
||||
return;
|
||||
}
|
||||
|
||||
NewDimData data = PocketManager.getDimensionData(this.dimensionId);
|
||||
if(!PocketManager.isLoaded() || data == null || data.type() == DimensionType.POCKET)
|
||||
if(data == null || data.type() == DimensionType.POCKET)
|
||||
{
|
||||
super.generateLightBrightnessTable();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue