Fixes boolean short circuit by grouping together the logical checks. Could also be fixed by using the non short cicuit counter parts of | and & respectively.
Tested and the changes appear working by now correctly blocking Guardians. Other hostile mobs are still blocked (including slime) and non-hostile mobs are also allowed wtih 'onlyBlockHostile' enabled
Fixes boolean short circuit by grouping together the logical checks. Could also be fixed by using the non short cicuit counter parts of
|
and&
respectively.Tested and the changes appear working by now correctly blocking Guardians. Other hostile mobs are still blocked (including slime) and non-hostile mobs are also allowed wtih 'onlyBlockHostile' enabled