Changed: MC Mod

Changed: MC Mod

156k Downloads

Null check for .scares() Function

Foxyas opened this issue ยท 1 comments

commented

Add a Null Check

for (Class<? extends PathfinderMob> entityClass : parent.scares) {

check if is null just don't scare any entity

how i found this? I was exploring the code and ended up discovering this "loophole" that doesn't necessarily crash the game but leaves a spam of warnings and BTW you can add a "Variable" call "ANY" for don't scary any entity without necessarily being organic

commented

use .scares(List.of()) in your variant builder