Chunkloader fixes
This commit is contained in:
parent
b18fe877de
commit
b818038fd6
2 changed files with 12 additions and 2 deletions
|
@ -321,8 +321,14 @@ public class mod_pocketDim
|
|||
CommandCreatePocket.instance().register(event);
|
||||
CommandTeleportPlayer.instance().register(event);
|
||||
|
||||
|
||||
ChunkLoaderHelper.loadChunkForcedWorlds(event);
|
||||
try
|
||||
{
|
||||
ChunkLoaderHelper.loadChunkForcedWorlds(event);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
System.out.println("Loading chunkloaders failed");
|
||||
}
|
||||
}
|
||||
|
||||
public static void sendChat(EntityPlayer player, String message)
|
||||
|
|
|
@ -39,6 +39,10 @@ public class TileEntityDimDoorGold extends TileEntityDimDoor implements IChunkLo
|
|||
if (this.chunkTicket == null)
|
||||
{
|
||||
chunkTicket = ForgeChunkManager.requestTicket(mod_pocketDim.instance, worldObj, Type.NORMAL);
|
||||
if(chunkTicket == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
chunkTicket.getModData().setInteger("goldDimDoorX", xCoord);
|
||||
chunkTicket.getModData().setInteger("goldDimDoorY", yCoord);
|
||||
chunkTicket.getModData().setInteger("goldDimDoorZ", zCoord);
|
||||
|
|
Loading…
Reference in a new issue