World manager fixes

This commit is contained in:
Daniel Mills 2021-08-10 03:35:31 -04:00
parent ee240ca201
commit 5410cda182
2 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
getData().getSpawnerLoader() getData().getSpawnerLoader()
.loadAll(getDimension().getEntitySpawners()) .loadAll(getDimension().getEntitySpawners())
.shuffleCopy(RNG.r).stream().filter(this::canSpawn), .shuffleCopy(RNG.r).stream().filter(this::canSpawn),
getData().getSpawnerLoader().streamAll(getEngine().getEngineParallax() getData().getSpawnerLoader().streamAll(getEngine().getMantle()
.getFeaturesInChunk(c).stream() .getFeaturesInChunk(c).stream()
.flatMap((o) -> o.getFeature().getEntitySpawners().stream())) .flatMap((o) -> o.getFeature().getEntitySpawners().stream()))
.filter(this::canSpawn)) .filter(this::canSpawn))
@ -333,7 +333,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
@Override @Override
public void onSave() { public void onSave() {
getEngine().getParallax().saveAll(); getEngine().getMantle().save();
} }
@Override @Override

View File

@ -240,7 +240,7 @@ public interface EngineMantle extends IObjectPlacer {
getMantle().iterateChunk(x, z, IrisFeaturePositional.class, (a,b,c,f) -> pos.add(f), MantleFlag.FEATURE); getMantle().iterateChunk(x, z, IrisFeaturePositional.class, (a,b,c,f) -> pos.add(f), MantleFlag.FEATURE);
return pos; return pos;
} }
@BlockCoordinates @BlockCoordinates
default KList<IrisFeaturePositional> forEachFeature(double x, double z) { default KList<IrisFeaturePositional> forEachFeature(double x, double z) {
KList<IrisFeaturePositional> pos = new KList<>(); KList<IrisFeaturePositional> pos = new KList<>();