weird flex but ok. Pathfinding affected spawning
This commit is contained in:
1 parent
fcd86537e6
commit
37e94e5978
1 file changed
+1
-1
@@ -177,7 +177,7 @@ public class PerimeterDiagnostics
|
|||||||
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
||||||
{
|
{
|
||||||
el.refreshPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
el.refreshPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
||||||
return el.canSpawn(worldServer) &&
|
return el.canSpawn(worldServer) && el.canSpawn(worldServer, SpawnType.NATURAL) &&
|
||||||
SpawnRestriction.canSpawn(el.getType(),el.getEntityWorld(), SpawnType.NATURAL, el.getBlockPos(), el.getEntityWorld().random) &&
|
SpawnRestriction.canSpawn(el.getType(),el.getEntityWorld(), SpawnType.NATURAL, el.getBlockPos(), el.getEntityWorld().random) &&
|
||||||
worldServer.doesNotCollide(el); // check collision rules once they stop fiddling with them after 1.14.1
|
worldServer.doesNotCollide(el); // check collision rules once they stop fiddling with them after 1.14.1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user