MCModderAnchor / TACZ

128 stars 25 forks source link

[Bug]: Giving guns exclusive attachment data breaks default attachment data #233

Open StarSpangler opened 2 months ago

StarSpangler commented 2 months ago

I have confirmed that ...

Minecraft and modloader version

Forge 47.2.20

tac version

1.20.1-1.0.3

Related Mods

Tac:Z

Description

Adding exclusive attachment data to any gun data file will not be applied, and it will not apply any data from the equipped attachment. I tried to make it work using the old data structure and the new data structure. Neither work.

https://github.com/user-attachments/assets/9b11c978-9f43-4b89-b9ed-4f7de9ccf6a7

Even worse, when attempting to add exclusive attachment data for extended magazines, it just crashes the game whenever the statistic dropdown is open.

Step to reproduce

  1. Add exclusive attachment data to any gun data.json.
  2. Use /tacz reload
  3. Equip the edited attachment.

Logs & Crash reports

crash-2024-09-15_14.38.10-client.txt