mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-25 10:09:14 +00:00
Hot fix mob spawning height
This commit is contained in:
@@ -74,8 +74,8 @@ public class IrisEntitySpawn implements IRare {
|
||||
for(int id = 0; id < spawns; id++) {
|
||||
int x = (c.getX() * 16) + rng.i(15);
|
||||
int z = (c.getZ() * 16) + rng.i(15);
|
||||
int h = gen.getHeight(x, z, true);
|
||||
int hf = gen.getHeight(x, z, false);
|
||||
int h = gen.getHeight(x, z, true) + gen.getWorld().minHeight();
|
||||
int hf = gen.getHeight(x, z, false) + gen.getWorld().minHeight();
|
||||
Location l = switch(getReferenceSpawner().getGroup()) {
|
||||
case NORMAL -> new Location(c.getWorld(), x, hf + 1, z);
|
||||
case CAVE -> gen.getMantle().findMarkers(c.getX(), c.getZ(), MarkerMatter.CAVE_FLOOR)
|
||||
|
||||
Reference in New Issue
Block a user