Fix for height restrictions
This commit is contained in:
parent
53080bea06
commit
16484d18b2
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ public class SpawnAPI<T extends Entity> {
|
|||
return this;
|
||||
}
|
||||
|
||||
public SpawnAPI<T> belowMinHeight() {
|
||||
rules.add((type, world, spawnReason, pos, random) -> pos.getY() < world.dimensionType().minY());
|
||||
public SpawnAPI<T> belowMaxHeight() {
|
||||
rules.add((type, world, spawnReason, pos, random) -> pos.getY() >= world.dimensionType().logicalHeight());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue