Due to how you're wrapping the EntityItem, it is possible for infinite loops of wrapping to occur. For example if someone used similar code to here, their EntityItem instance would pass your initial check, and after you wrap their instance yours would pass their check, causing theirs to pass your check again. Something like an additional NBT flag here could help protect against this issue.
Due to how you're wrapping the EntityItem, it is possible for infinite loops of wrapping to occur. For example if someone used similar code to here, their EntityItem instance would pass your initial check, and after you wrap their instance yours would pass their check, causing theirs to pass your check again. Something like an additional NBT flag here could help protect against this issue.