NetworkSystem networkSystem = CoreRegistry.get(NetworkSystem.class);
WorldAtlas atlas = new WorldAtlasImpl(CoreRegistry.get(Config.class).getRendering().getMaxTextureAtlasResolution());
CoreRegistry.put(WorldAtlas.class, atlas);
BlockManagerImpl blockManager;
BlockFamilyFactoryRegistry blockFamilyFactoryRegistry = CoreRegistry.get(BlockFamilyFactoryRegistry.class);
if (networkSystem.getMode().isAuthority()) {
blockManager = new BlockManagerImpl(atlas, gameManifest.getRegisteredBlockFamilies(), gameManifest.getBlockIdMap(), true, blockFamilyFactoryRegistry);
blockManager.subscribe(CoreRegistry.get(NetworkSystem.class));
} else {
blockManager = new BlockManagerImpl(atlas, gameManifest.getRegisteredBlockFamilies(), gameManifest.getBlockIdMap(), false, blockFamilyFactoryRegistry);