mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 04:29:05 +00:00
Add entity spawn location setting
Also prevents entities from spawning when a building was not spawned
This commit is contained in:
@@ -114,9 +114,14 @@ public class PlannedStructure {
|
||||
|
||||
for(IrisJigsawPieceConnector j : i.getAvailableConnectors())
|
||||
{
|
||||
if(j.getSpawnEntity() != null)
|
||||
if(j.getSpawnEntity() != null && h != -1)
|
||||
{
|
||||
IrisPosition p = i.getWorldPosition(j).add(new IrisPosition(j.getDirection().toVector().multiply(2)));
|
||||
IrisPosition p = null;
|
||||
if (j.getEntityPosition() == null){
|
||||
p = new IrisPosition(j.getDirection().toVector().multiply(2));
|
||||
} else {
|
||||
p = i.getWorldPosition(j).add(j.getEntityPosition());
|
||||
}
|
||||
|
||||
if(options.getMode().equals(ObjectPlaceMode.PAINT) || options.isVacuum())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user