adjustment to piglins respawning in bastions.

This commit is contained in:
gnembon committed 2020-07-06 00:14:09 -03:00
1 parent ed0090b134
commit 52d4a9d581
2 files changed
+12 -4

No files matched your search

@@ -18,7 +18,11 @@ import java.util.List;
@Mixin(BastionRemnantFeature.class)
public abstract class BastionRemnantFeatureMixin extends StructureFeature<BastionRemnantFeatureConfig> {
private static final List<Biome.SpawnEntry> spawnList = Lists.newArrayList(new Biome.SpawnEntry(EntityType.PIGLIN_BRUTE, 5, 1, 2), new Biome.SpawnEntry(EntityType.PIGLIN, 10, 2, 4));
private static final List<Biome.SpawnEntry> spawnList = Lists.newArrayList(
new Biome.SpawnEntry(EntityType.PIGLIN_BRUTE, 5, 1, 2),
new Biome.SpawnEntry(EntityType.PIGLIN, 10, 2, 4),
new Biome.SpawnEntry(EntityType.HOGLIN, 2, 1, 2)
);
public BastionRemnantFeatureMixin(Codec<BastionRemnantFeatureConfig> codec) {
super(codec);
@@ -27,7 +31,7 @@ public abstract class BastionRemnantFeatureMixin extends StructureFeature<Bastio
@Override
public List<Biome.SpawnEntry> getMonsterSpawns()
{
if (CarpetSettings.bruteSpawningInBastionRemnants)
if (CarpetSettings.piglinsSpawningInBastions)
return spawnList;
return Collections.emptyList();
}