mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-10 01:10:30 +00:00
8080dcdd9e
While Item.inventoryTick is passed a slot number, apparently that slot corresponds to the offset within a particular inventory compartment (such as the main inventory or armour)[^1], rather than the inventory as a whole. In the case of the off-hand, this means the pocket computer is set to be in slot 0. When we next tick the computer (to send terminal updates), we then assume the item has gone missing, and so skip sending updates. Fixes #1945. [^1]: A fun side effect of this is that the "selected" flag is true for the off-hand iff the player has slot 0 active. This whole thing feels like a vanilla bug, but who knows! |
||
---|---|---|
.. | ||
src | ||
build.gradle.kts |