Don't try to check a dim type before we have dim data. Relight dimension
when we get it.
This commit is contained in:
parent
d01bbb488e
commit
91f96c825c
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
package StevenDimDoors.mod_pocketDim.network;
|
||||
|
||||
import StevenDimDoors.mod_pocketDim.core.NewDimData;
|
||||
import StevenDimDoors.mod_pocketDim.core.PocketManager;
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
|
@ -30,7 +31,10 @@ public class ClientJoinPacket extends DimDoorsPacket {
|
|||
|
||||
@Override
|
||||
public void handleClient(World world, EntityPlayer player) {
|
||||
NewDimData dimensionData = PocketManager.getDimensionData(player.worldObj);
|
||||
|
||||
if (dimensionData.isPocketDimension())
|
||||
player.worldObj.provider.registerWorld(player.worldObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -89,7 +89,7 @@ public class PocketProvider extends WorldProvider
|
|||
@Override
|
||||
protected void generateLightBrightnessTable()
|
||||
{
|
||||
if(PocketManager.getDimensionData(this.dimensionId).type() == DimensionType.POCKET)
|
||||
if(!PocketManager.isLoaded() || PocketManager.getDimensionData(this.dimensionId).type() == DimensionType.POCKET)
|
||||
{
|
||||
super.generateLightBrightnessTable();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue