From 149172d00684ed092e368febe3c14249ab24d628 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Wed, 29 Apr 2020 02:12:51 +0200 Subject: [PATCH] Allow delegation to vanilla chunk gen --- .../Allow-delegation-to-vanilla-chunk-gen.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Allow-delegation-to-vanilla-chunk-gen.patch b/Spigot-Server-Patches/Allow-delegation-to-vanilla-chunk-gen.patch index 297033e24..2fed1a162 100644 --- a/Spigot-Server-Patches/Allow-delegation-to-vanilla-chunk-gen.patch +++ b/Spigot-Server-Patches/Allow-delegation-to-vanilla-chunk-gen.patch @@ -46,9 +46,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + list.add(protoChunk); + net.minecraft.server.RegionLimitedWorldAccess genRegion = new net.minecraft.server.RegionLimitedWorldAccess(nmsWorld, list); + // call vanilla generator, one feature after another. Order here is important! -+ net.minecraft.server.ChunkGenerator chunkGenerator = ((CraftWorld) world).getHandle().worldProvider.getChunkGenerator(); ++ net.minecraft.server.ChunkGenerator chunkGenerator = nmsWorld.getChunkProvider().chunkGenerator; + chunkGenerator.createBiomes(protoChunk); -+ chunkGenerator.buildNoise(genRegion, protoChunk); ++ chunkGenerator.buildNoise(genRegion, nmsWorld.getStructureManager(), protoChunk); + chunkGenerator.buildBase(genRegion, protoChunk); + // copy over generated sections + data.setRawChunkData(protoChunk.getSections());