Chunkloader fixes

This commit is contained in:
StevenRS11 2013-11-12 13:49:43 -05:00
parent b18fe877de
commit b818038fd6
2 changed files with 12 additions and 2 deletions

View file

@ -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)

View file

@ -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);