mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-22 06:03:45 +02:00 
			
		
		
		
	Delegate to platformGenerator in deprecated generation method if applicable when using new generation methods (1.19)
This commit is contained in:
		| @@ -278,9 +278,13 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap | ||||
|             @NonNull World world, @NonNull Random random, int x, int z, @NonNull BiomeGrid biome | ||||
|     ) { | ||||
|         if (useNewGenerationMethods) { | ||||
|             if (this.platformGenerator != this) { | ||||
|                 return this.platformGenerator.generateChunkData(world, random, x, z, biome); | ||||
|             } else { | ||||
|                 // Return super as it will throw an exception caught by the server that will mean this method is no longer used. | ||||
|                 return super.generateChunkData(world, random, x, z, biome); | ||||
|             } | ||||
|         } | ||||
|         int minY = BukkitWorld.getMinWorldHeight(world); | ||||
|         int maxY = BukkitWorld.getMaxWorldHeight(world); | ||||
|         GenChunk result = new GenChunk(minY, maxY); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dordsor21
					dordsor21