elytra / PopcornSmelting

Re-adds in-world smelting in fire and lava from Indev.
MIT License
0 stars 0 forks source link

Potentially Infinite Wrappings #10

Open Darkhax opened 5 years ago

Darkhax commented 5 years ago

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.