Skip to content

Commit

Permalink
Also skip feature removal for FlatLevelSource
Browse files Browse the repository at this point in the history
Otherwise, entire layers of specific block types will be removed instead
of just the parts that are not supposed to be there.
  • Loading branch information
Pixaurora committed Sep 27, 2023
1 parent 315939a commit f291395
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.WorldGenLevel;
import net.minecraft.world.level.chunk.ChunkGenerator;
import net.minecraft.world.level.levelgen.FlatLevelSource;
import net.minecraft.world.level.levelgen.feature.Feature;
import net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration;

Expand All @@ -28,7 +29,7 @@ public class FeatureMixin<FC extends FeatureConfiguration> {
BlockPos originPos,
CallbackInfoReturnable<Boolean> cir
) {
if (generator.janerator$notMultiGenerating()) {
if (generator instanceof FlatLevelSource || generator.janerator$notMultiGenerating()) {
return;
}

Expand Down

0 comments on commit f291395

Please sign in to comment.