Don't ignore endCityFailChance config value. Fixes quiqueck/BetterEnd#92
This commit is contained in:
parent
ac96841372
commit
01a4bdbe8e
2 changed files with 22 additions and 21 deletions
|
@ -24,12 +24,12 @@ public class EndCityFeatureMixin {
|
|||
) {
|
||||
final ChunkPos pos = context.chunkPos();
|
||||
WorldgenRandom chunkRandom = new WorldgenRandom(new XoroshiroRandomSource(pos.x, pos.z));
|
||||
chunkRandom.consumeCount(1);
|
||||
|
||||
if (GeneratorOptions.useNewGenerator()) {
|
||||
int chance = GeneratorOptions.getEndCityFailChance();
|
||||
if (chance > 0 && chunkRandom.nextInt(chance) != 0) {
|
||||
info.setReturnValue(Optional.empty());
|
||||
info.cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,34 +2,35 @@
|
|||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "org.betterx.betterend.mixin.common",
|
||||
"compatibilityLevel": "JAVA_16",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
"LevelMixin",
|
||||
"NoiseBasedChunkGeneratorAccessor",
|
||||
"NoiseGeneratorSettingsMixin",
|
||||
"NoiseInterpolatorAccessor",
|
||||
"ChorusPlantFeatureMixin",
|
||||
"PlayerAdvancementsMixin",
|
||||
"BlockBehaviourMixin",
|
||||
"ChorusFlowerBlockMixin",
|
||||
"ChorusPlantBlockMixin",
|
||||
"EndPodiumFeatureMixin",
|
||||
"EndDragonFightMixin",
|
||||
"MappedRegistryMixin",
|
||||
"WorldGenRegionMixin",
|
||||
"BlockBehaviourMixin",
|
||||
"NoiseChunkAccessor",
|
||||
"ChorusPlantFeatureMixin",
|
||||
"CraftingMenuMixin",
|
||||
"LivingEntityMixin",
|
||||
"ServerPlayerMixin",
|
||||
"SpikeFeatureMixin",
|
||||
"ServerLevelMixin",
|
||||
"NoiseChunkMixin",
|
||||
"EndCityFeatureMixin",
|
||||
"EndDragonFightMixin",
|
||||
"EnderManMixin",
|
||||
"EndPodiumFeatureMixin",
|
||||
"EndSpikeMixin",
|
||||
"MonsterMixin",
|
||||
"EntityMixin",
|
||||
"LevelMixin",
|
||||
"LivingEntityMixin",
|
||||
"MappedRegistryMixin",
|
||||
"MonsterMixin",
|
||||
"NoiseBasedChunkGeneratorAccessor",
|
||||
"NoiseChunkAccessor",
|
||||
"NoiseChunkMixin",
|
||||
"NoiseGeneratorSettingsMixin",
|
||||
"NoiseInterpolatorAccessor",
|
||||
"PlayerAdvancementsMixin",
|
||||
"PlayerMixin",
|
||||
"SlimeMixin"
|
||||
"ServerLevelMixin",
|
||||
"ServerPlayerMixin",
|
||||
"SlimeMixin",
|
||||
"SpikeFeatureMixin",
|
||||
"WorldGenRegionMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue