CyclopsMC / IntegratedTunnels

Transfer other energy, items and fluids over Integrated Dynamics networks
MIT License
20 stars 13 forks source link

Crash when matching Immutable block item drop lists #257

Closed shBLOCK closed 2 years ago

shBLOCK commented 2 years ago

Issue type:


Short description:

Crash when block breaker tries to match a block from a mod that returns its drops as an Immutable list. The crash happens because it's trying to remove elements from the Immutable list. See: https://github.com/CyclopsMC/IntegratedTunnels/blob/master-1.18/src/main/java/org/cyclops/integratedtunnels/core/ItemStorageBlockWrapper.java#L158 Doing a check and converting it to a Mutable list if needed will fix it I think.

Steps to reproduce the problem:

Haven't figured out what block it was breaking when the crash happens, but this should be easy to fix, and probably won't require testing after the fix.


Versions:

Log file:

https://pastebin.com/3R6sZzf7

rubensworks commented 2 years ago

Thanks for reporting!