Ensure use of new generation methods only on 1.19 and above

This commit is contained in:
dordsor21 2022-06-27 17:40:46 +01:00
parent 75fd9b2631
commit c0bfa297bb
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -90,7 +90,7 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap
this.populators.add(new LegacyBlockStatePopulator(this.plotGenerator));
}
this.full = true;
this.useNewGenerationMethods = PlotSquared.platform().serverVersion()[1] >= 17;
this.useNewGenerationMethods = PlotSquared.platform().serverVersion()[1] >= 19;
this.biomeProvider = new BukkitPlotBiomeProvider();
}