fix spawn markers not being removed

This commit is contained in:
Julian Krings 2025-04-10 21:01:06 +02:00 committed by Julian Krings
parent 463e3d9658
commit ce29dc98c3
2 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
private void spawn(IrisPosition pos, IrisEntitySpawn i) { private void spawn(IrisPosition pos, IrisEntitySpawn i) {
IrisSpawner ref = i.getReferenceSpawner(); IrisSpawner ref = i.getReferenceSpawner();
if (!ref.canSpawn(getEngine(), pos.getX() >> 4, pos.getZ())) if (!ref.canSpawn(getEngine(), pos.getX() >> 4, pos.getZ() >> 4))
return; return;
int s = i.spawn(getEngine(), pos, RNG.r); int s = i.spawn(getEngine(), pos, RNG.r);

View File

@ -117,7 +117,7 @@ public class IrisEntitySpawn implements IRare {
if (spawns > 0) { if (spawns > 0) {
if (referenceMarker != null) { if (referenceMarker != null) {
gen.getMantle().getMantle().remove(c.getX(), c.getY(), c.getZ(), MatterMarker.class); gen.getMantle().getMantle().remove(c.getX(), c.getY() - gen.getWorld().minHeight(), c.getZ(), MatterMarker.class);
} }
for (int id = 0; id < spawns; id++) { for (int id = 0; id < spawns; id++) {