Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 private void modifyWorld(WorldClient worldClient) {
   ChunkProviderClient cubeCache = cc.getClientChunkCacheAndInitWorld(worldClient);
   WorldClientAccess.setChunkProviderClient(worldClient, cubeCache);
   WorldAccess.setChunkProvider(worldClient, cubeCache);
 }