fix #1188 fix structure eligibility with strongholds

This commit is contained in:
gnembon committed 2021-11-28 23:32:24 +01:00
1 parent a990be607f
commit 9b793de377
3 files changed
+35 -8

No files matched your search

@@ -1,6 +1,7 @@
package carpet.mixins;
import carpet.fakes.ChunkGeneratorInterface;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.chunk.ChunkGenerator;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@@ -9,10 +10,16 @@ import org.spongepowered.asm.mixin.Shadow;
public abstract class ChunkGenerator_scarpetMixin implements ChunkGeneratorInterface
{
@Shadow protected abstract void generateStrongholdPositions();
@Shadow private static boolean canPlaceStrongholdInBiome(Biome biome) { return true;}
@Override
@Override
public void initStrongholds()
{
generateStrongholdPositions();
}
@Override
public boolean canPlaceStrongholdInBiomeCM(Biome biome) {
return canPlaceStrongholdInBiome(biome);
}
}