Fix spawn radius issues

This commit is contained in:
cyberpwn 2021-09-08 08:40:48 -04:00
parent e426172b18
commit 1065079be6

View File

@ -18,6 +18,7 @@
package com.volmit.iris.engine.mantle.components; package com.volmit.iris.engine.mantle.components;
import com.volmit.iris.Iris;
import com.volmit.iris.engine.jigsaw.PlannedStructure; import com.volmit.iris.engine.jigsaw.PlannedStructure;
import com.volmit.iris.engine.mantle.EngineMantle; import com.volmit.iris.engine.mantle.EngineMantle;
import com.volmit.iris.engine.mantle.IrisMantleComponent; import com.volmit.iris.engine.mantle.IrisMantleComponent;
@ -110,6 +111,11 @@ public class MantleJigsawComponent extends IrisMantleComponent {
} }
writer.setData(position.getX(), 0, position.getZ(), writer.setData(position.getX(), 0, position.getZ(),
new IrisFeaturePositional(position.getX(), position.getZ(), structure.getFeature())); new IrisFeaturePositional(position.getX(), position.getZ(), structure.getFeature()));
if(structure.getFeature().getEntitySpawners().isNotEmpty())
{
Iris.info("Placed Structure MAIN SPAWN " + structure.getFeature().getEntitySpawners().get(0) + " @R " + structure.getFeature().getBlockRadius());
}
} }
new PlannedStructure(structure, position, rng).place(writer, getMantle(), post); new PlannedStructure(structure, position, rng).place(writer, getMantle(), post);