Chunkloader fixes
This commit is contained in:
@@ -321,9 +321,15 @@ public class mod_pocketDim
|
|||||||
CommandCreatePocket.instance().register(event);
|
CommandCreatePocket.instance().register(event);
|
||||||
CommandTeleportPlayer.instance().register(event);
|
CommandTeleportPlayer.instance().register(event);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
ChunkLoaderHelper.loadChunkForcedWorlds(event);
|
ChunkLoaderHelper.loadChunkForcedWorlds(event);
|
||||||
}
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
System.out.println("Loading chunkloaders failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void sendChat(EntityPlayer player, String message)
|
public static void sendChat(EntityPlayer player, String message)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ public class TileEntityDimDoorGold extends TileEntityDimDoor implements IChunkLo
|
|||||||
if (this.chunkTicket == null)
|
if (this.chunkTicket == null)
|
||||||
{
|
{
|
||||||
chunkTicket = ForgeChunkManager.requestTicket(mod_pocketDim.instance, worldObj, Type.NORMAL);
|
chunkTicket = ForgeChunkManager.requestTicket(mod_pocketDim.instance, worldObj, Type.NORMAL);
|
||||||
|
if(chunkTicket == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
chunkTicket.getModData().setInteger("goldDimDoorX", xCoord);
|
chunkTicket.getModData().setInteger("goldDimDoorX", xCoord);
|
||||||
chunkTicket.getModData().setInteger("goldDimDoorY", yCoord);
|
chunkTicket.getModData().setInteger("goldDimDoorY", yCoord);
|
||||||
chunkTicket.getModData().setInteger("goldDimDoorZ", zCoord);
|
chunkTicket.getModData().setInteger("goldDimDoorZ", zCoord);
|
||||||
|
|||||||
Reference in New Issue
Block a user