fixed spawn tracking after 1.14.3 pre 2
This commit is contained in:
1 parent
ad790977f6
commit
bbe191f9d9
2 files changed
+4
-2
No files matched your search
@@ -177,7 +177,9 @@ public class PerimeterDiagnostics
|
|||||||
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
||||||
{
|
{
|
||||||
el.setPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
el.setPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
||||||
return el.canSpawn(worldServer) && el.canSpawn(worldServer, SpawnType.NATURAL) && worldServer.doesNotCollide(el); // check collision rules once they stop fiddling with them after 1.14.1
|
return el.canSpawn(worldServer) &&
|
||||||
|
SpawnRestriction.method_20638(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
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ public class SpawnReporter
|
|||||||
|
|
||||||
for (int i = 0; i < 20; ++i)
|
for (int i = 0; i < 20; ++i)
|
||||||
{
|
{
|
||||||
if (mob.canSpawn(worldIn, SpawnType.NATURAL))
|
if (SpawnRestriction.method_20638(mob.getType(),mob.getEntityWorld(), SpawnType.NATURAL, mob.getBlockPos(), mob.getEntityWorld().random))
|
||||||
{
|
{
|
||||||
will_spawn += 1;
|
will_spawn += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user