{
if (map.containsKey(world.provider.dimensionId))
{
OutputHandler.debug(world.provider.dimensionId + " was already loaded. add 1 to count.");
Ticket ticket = map.get(world.provider.dimensionId);
ticket.getModData().setInteger("count", ticket.getModData().getInteger("count") + 1);
return true;
}
else
{
Ticket ticket = ForgeChunkManager.requestTicket(ForgeEssentials.instance, world, ForgeChunkManager.Type.NORMAL);
if (ticket == null)
{
OutputHandler.debug("Ticket was null ?");
return false;
}
else
{
OutputHandler.debug("Force loaded " + world.provider.dimensionId);
ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(0, 0));
ticket.getModData().setInteger("count", 1);
map.put(world.provider.dimensionId, ticket);
return true;
}
}
}