More fixes

This commit is contained in:
paulevsGitch 2020-11-02 18:11:36 +03:00
parent fb41165361
commit 1360b4171c
3 changed files with 7 additions and 2 deletions

View file

@ -8,7 +8,7 @@
loader_version = 0.10.5+build.213
# Mod Properties
mod_version = 0.5.1-beta
mod_version = 0.5.2-beta
maven_group = ru.betterend
archives_base_name = better-end

View file

@ -44,7 +44,7 @@ public class EndStructures {
}
public static void registerBiomeStructures(Identifier id, Biome biome, Collection<Supplier<ConfiguredStructureFeature<?, ?>>> structures) {
if (!id.getPath().contains("mountain")) {
if (!id.getPath().contains("mountain") && !id.getPath().contains("lake")) {
addStructure(ETERNAL_PORTAL, structures);
}
}

View file

@ -120,12 +120,17 @@ public class LakePiece extends BasePiece {
}
}
maxY = MHelper.randRange(2, 3, random);
int last = maxY - 1;
for (int i = 0; i < maxY; i++) {
pos.setY(pos.getY() - 1);
BlockState state = chunk.getBlockState(pos);
if (state.getMaterial().isReplaceable() || state.isIn(EndTags.GEN_TERRAIN)) {
if (pos.getY() > 56) {
chunk.setBlockState(pos, AIR, false);
if (pos.getY() == last) {
state = world.getBiome(pos.add(sx, 0, sz)).getGenerationSettings().getSurfaceConfig().getTopMaterial();
chunk.setBlockState(pos.down(), state, false);
}
}
else if (pos.getY() == 56) {
if (random.nextBoolean()) {