Small fix

This commit is contained in:
paulevsGitch 2020-11-06 15:03:26 +03:00
parent 73aa475247
commit ed16c1befe
3 changed files with 17 additions and 4 deletions

View file

@ -48,7 +48,7 @@ public class StructureEternalPortal extends StructureFeatureBase {
int z = (chunkZ << 4) | MHelper.randRange(4, 12, random);
int y = chunkGenerator.getHeight(x, z, Type.WORLD_SURFACE_WG);
if (y > 50) {
this.children.add(new NBTPiece(STRUCTURE_ID, STRUCTURE, new BlockPos(x, y - 3, z), random.nextInt(5), true, random));
this.children.add(new NBTPiece(STRUCTURE_ID, STRUCTURE, new BlockPos(x, y - 4, z), random.nextInt(5), true, random));
}
this.setBoundingBoxFromChildren();
}