mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Handle your engine signals
This commit is contained in:
parent
18db39d480
commit
009835c17f
@ -74,10 +74,8 @@ public class IrisEntitySpawn implements IRare {
|
|||||||
for(int id = 0; id < spawns; id++) {
|
for(int id = 0; id < spawns; id++) {
|
||||||
int x = (c.getX() * 16) + rng.i(15);
|
int x = (c.getX() * 16) + rng.i(15);
|
||||||
int z = (c.getZ() * 16) + rng.i(15);
|
int z = (c.getZ() * 16) + rng.i(15);
|
||||||
int h = gen.getHeight(x, z, true) - 64;
|
int h = gen.getHeight(x, z, true) + (gen.getWorld().tryGetRealWorld() ? gen.getWorld().realWorld().getMinHeight() : -64);
|
||||||
int hf = gen.getHeight(x, z, false) - 64;
|
int hf = gen.getHeight(x, z, false) + (gen.getWorld().tryGetRealWorld() ? gen.getWorld().realWorld().getMinHeight() : -64);
|
||||||
//int h = gen.getHeight(x, z, true) + gen.getWorld().minHeight(); Will look into this later
|
|
||||||
//int hf = gen.getHeight(x, z, false) + gen.getWorld().minHeight();
|
|
||||||
Location l = switch(getReferenceSpawner().getGroup()) {
|
Location l = switch(getReferenceSpawner().getGroup()) {
|
||||||
case NORMAL -> new Location(c.getWorld(), x, hf + 1, z);
|
case NORMAL -> new Location(c.getWorld(), x, hf + 1, z);
|
||||||
case CAVE -> gen.getMantle().findMarkers(c.getX(), c.getZ(), MarkerMatter.CAVE_FLOOR)
|
case CAVE -> gen.getMantle().findMarkers(c.getX(), c.getZ(), MarkerMatter.CAVE_FLOOR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user