mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-17 23:48:00 +01:00
Try to prevent bats from respawning in lava or water
This commit is contained in:
parent
493d746884
commit
2ec2860fdd
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ public class SpawnLocator extends SpawnLocating {
|
|||
while (world.isAir(mutable) && mutable.getY() >= spawnPos.getY() - spawnRadius * 2 && !world.isOutOfHeightLimit(mutable)) {
|
||||
mutable.move(0, -1, 0);
|
||||
}
|
||||
|
||||
if (!world.getFluidState(mutable).isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!world.isAir(mutable)) {
|
||||
mutable.move(0, 1, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue