More fixes
This commit is contained in:
parent
fb41165361
commit
1360b4171c
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue