TobiasDeBruijn / HaroTorch

Modded's MegaTorch on Spigot
GNU General Public License v3.0
1 stars 4 forks source link

Fix for incorrect hostile mob blocking (fix boolean short circuit) #16

Closed TerdyTheTerd closed 2 years ago

TerdyTheTerd commented 2 years ago

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