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:
parent
4dd32d6f72
commit
bb4e78da90
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue