TickManager manager = new TickManager((WorldServer) world, getThreadCount());
try {
Field loadedTileEntityField = ReflectUtil.getFields(World.class, List.class)[loadedTileEntityFieldIndex];
new LoadedTileEntityList(world, loadedTileEntityField, manager);
Field loadedEntityField = ReflectUtil.getFields(World.class, List.class)[loadedEntityFieldIndex];
new LoadedEntityList(world, loadedEntityField, manager);
if (managers.put(world, manager) != null) {
Log.severe("World load fired twice for world " + world.getName());
}
} catch (Exception e) {
Log.severe("Failed to initialise threading for world " + Log.name(world), e);