private void modifyWorld(WorldServer worldServer) { ChunkProviderServer cubeCache = cc.getServerChunkCacheAndInitWorld(worldServer); worldServer.theChunkProviderServer = cubeCache; WorldAccess.setChunkProvider(worldServer, cubeCache); WorldServerAccess.setPlayerManager(worldServer, cc.getPlayerManager(worldServer)); worldServer.getGameRules().setOrCreateGameRule("doMobSpawning", String.valueOf(false)); }
private void modifyWorld(WorldClient worldClient) { ChunkProviderClient cubeCache = cc.getClientChunkCacheAndInitWorld(worldClient); WorldClientAccess.setChunkProviderClient(worldClient, cubeCache); WorldAccess.setChunkProvider(worldClient, cubeCache); }