mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-10 08:00:05 +00:00
b7a8432cfb
There's a whole load of gnarly issues that occur when a turtle is broken mid-dig/attack (normally due to an explosion). We fixed most of these in 24af36743d08fcdb58439c52bf587b33ed828263, but not perfectly. Part of the fix here was to not capture drops if the turtle BE has been removed. However, on removal, turtles drop their items *before* removing the BE. This meant that the drop consumer still triggered, and attempted to insert items back into the turtle. This bug only triggers if the turtle contains a stack larger than 10 (ish, I think) items, which is possibly why I'd never reproduced before. We now drop items after removing the BE, which resolves the issue. Fixes #1936.