Fix for height restrictions

This commit is contained in:
Frank 2021-11-27 01:01:19 +01:00
parent 53080bea06
commit 16484d18b2

View file

@ -55,8 +55,8 @@ public class SpawnAPI<T extends Entity> {
return this; return this;
} }
public SpawnAPI<T> belowMinHeight() { public SpawnAPI<T> belowMaxHeight() {
rules.add((type, world, spawnReason, pos, random) -> pos.getY() < world.dimensionType().minY()); rules.add((type, world, spawnReason, pos, random) -> pos.getY() >= world.dimensionType().logicalHeight());
return this; return this;
} }