fixed nextInt(7) height call not being compared properly
This commit is contained in:
@@ -47,7 +47,7 @@ public class EndGatewayFinder extends BlockFinder {
|
|||||||
|
|
||||||
if(height >= 3 && height <= 9) {
|
if(height >= 3 && height <= 9) {
|
||||||
newResult.add(pos);
|
newResult.add(pos);
|
||||||
System.out.println("Height is " + height + ".");
|
|
||||||
if(SeedCracker.get().onPopulationData(new EndGatewayData(this.chunkPos, biome, pos, 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)));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return height;
|
return height - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user