9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-23 17:19:16 +00:00

Remove villager building cancelling check

This reintroduces villages but they can spawn in the water
This commit is contained in:
CocoTheOwner
2021-03-10 10:52:01 +01:00
parent 9cf60ca227
commit c57ac4c9fe

View File

@@ -114,11 +114,11 @@ public class PlannedStructure {
for(IrisJigsawPieceConnector j : i.getAvailableConnectors())
{
if(j.getSpawnEntity() != null && h != -1)
if(j.getSpawnEntity() != null)// && h != -1)
{
IrisPosition p;
if (j.getEntityPosition() == null){
p = new IrisPosition(j.getDirection().toVector().multiply(2));
p = i.getWorldPosition(j).add(new IrisPosition(j.getDirection().toVector().multiply(2)));
} else {
p = i.getWorldPosition(j).add(j.getEntityPosition());
}
@@ -132,7 +132,9 @@ public class PlannedStructure {
{
p.setY(height);
}
if (j.getSpawnEntity().equals("villager")){
Iris.msg("Spawning villager on jigsaw @" + p.getX() + "/" + p.getY() + "/" + p.getZ());
}
e.getParallaxAccess().setEntity(p.getX(), p.getY(), p.getZ(), j.getSpawnEntity());
}
}