fixed nextInt(7) height call not being compared properly

This commit is contained in:
Unknown
2019-12-09 19:14:54 -05:00
parent 83bf5ed63d
commit c19ca69b94
@@ -47,7 +47,7 @@ public class EndGatewayFinder extends BlockFinder {
if(height >= 3 && height <= 9) {
newResult.add(pos);
System.out.println("Height is " + height + ".");
if(SeedCracker.get().onPopulationData(new EndGatewayData(this.chunkPos, biome, pos, height))) {
this.renderers.add(new Cuboid(pos.add(-1, -2, -1), pos.add(2, 3, 2), new Vector4f(0.4f, 0.4f, 0.82f, 1.0f)));
}
@@ -74,7 +74,7 @@ public class EndGatewayFinder extends BlockFinder {
break;
}
return height;
return height - 1;
}
@Override