Fixed invocation of Vanilla spawn logic (#6334)

Forge's replacement of the Vanilla logic gets inverted, so the Vanilla logic inside that replacement must be inverted to correct for this.
(Fixes #6332)
This commit is contained in:
DaemonUmbra 2019-12-02 17:54:00 -05:00 committed by LexManos
parent 4dd32d6f72
commit bb4e78da90

View file

@ -185,7 +185,7 @@ public class ForgeEventFactory
{
Result result = canEntitySpawn(entity, world, x, y, z, spawner, SpawnReason.SPAWNER);
if (result == Result.DEFAULT)
return entity.canSpawn(world, SpawnReason.SPAWNER) || !entity.isNotColliding(world); // vanilla logic
return entity.canSpawn(world, SpawnReason.SPAWNER) && entity.isNotColliding(world); // vanilla logic (inverted)
else
return result == Result.ALLOW;
}