sp614x / optifine

1.77k stars 420 forks source link

[Cit] Offhand #7680

Open RhyGPU opened 3 weeks ago

RhyGPU commented 3 weeks ago

Description of Issue

Cit for off hand is broken when main hand is set to left hand in skin customization option.

When main hand = right hand: Works perfectly The cit shows up on off hand 2024-06-08_20 07 07 2024-06-08_20 07 17 2024-06-08_20 07 14

When main hand = left hand: The cit appears on main hand while the icon on the hot bar gui appears as a non cit texture The cit doesn't appear on off hand while the hot bar gui appears as a cit texture. 2024-06-08_20 07 04 2024-06-08_20 06 35 2024-06-08_20 06 46 2024-06-10_13 42 08 2024-06-10_13 42 20

Steps to Reproduce

  1. make a properties file as following under the cit file: type=item

items=diamond_sword

model=diamond_sword_scabbard

hand=off

  1. Make a custom model where the sword is on the back of the character and name it diamond_sword_scabbard.
  2. Load resource pack in-game.
  3. Change the main hand to left hand in the skin customization option.

OptiFine Version

OptiFine HD U I8 pre2, OptiFine HD U I9 pre1, OptiFine HD U I5, OptiFine HD U I7. All versions I tried using to see if it was across multiple versions.

Installation Method

I have downloaded optifine as a standalone from the optifine download site.

Log Files/Crash Reports

No crashes or logs for it.

F3 Debug Screenshot

2024-06-10_13 43 14 2024-06-10_13 43 36

Prior Testing

Vanilla dose not support this feature as it is an CIT feature.