1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-24 07:56:54 +00:00
CC-Tweaked/projects
Jonathan Coates 8080dcdd9e
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!
2024-08-19 17:34:39 +01:00
..
common Fix pocket computers not being active in the off-hand 2024-08-19 17:34:39 +01:00
common-api Fix several repeated words 2024-08-17 11:39:14 +01:00
core Remove usage of deprecated legacy Java Date API 2024-08-18 12:56:36 +01:00
core-api Don't share singleton collections 2024-08-18 10:20:54 +01:00
fabric Allow placing printouts in lecterns 2024-08-15 21:19:13 +01:00
fabric-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
forge Allow placing printouts in lecterns 2024-08-15 21:19:13 +01:00
forge-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
lints Fix disk drives not setting/clearing removed flag 2024-08-15 09:03:33 +01:00
standalone Small bits of cleanup 2024-06-26 18:07:57 +01:00
web Publish docs via an artifact instead 2024-06-19 09:57:56 +01:00
ARCHITECTURE.md Add a standalone CC:T UI 2023-10-28 17:58:11 +01:00