-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pocket computers not being active in the off-hand
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!
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters