Crossroads-Development / Crossroads

Crossroads is a mod for Minecraft. It adds a lot of content, and has the design philosophy of "simple pieces, complex contraptions".
MIT License
29 stars 14 forks source link

Technomancy Armors break with big damage #281

Closed ozraru closed 6 months ago

ozraru commented 7 months ago

Describe the bug Technomancy Armors break with big damage.

Bigger damage can reduce armor durability by more than 1. If the armor gets durability damage bigger than its durability, said armor will be lost.

The procedure to reproduce this bug is done with stupidly massive damage, but the loss of armor can happen with the armor with low durability, and explosion in near proximity.

To Reproduce [Optional]

  1. Wear netherite reinforced technomancy armor (any of them works)
  2. Get big damage (e.g. drill with 1000000 rad/s speed, /damage @s 1000000)
  3. Armor is lost

Alternatively,

  1. Wear said armor, but with very low durability
  2. blown up by TNT/Creeper (The explosion has to be nearby so that the damage is big enough)
  3. Armor is lost

Expected behavior [Optional] From in-game manual

If upgraded with netherite, the armor will have durability, but won't be destroyed when it runs out of durability, and will still provide the utility power (but won't provide armor until repaired with netherite).

Screenshots [Optional] 2023-12-04_06 41 24 2023-12-04_06 41 28 2023-12-04_06 41 37 2023-12-04_06 41 41

Additional context [Optional] It happened in Crossroads 2.9.5, 2.9.6, and 2.10.1. I hope this bug is also fixed in MC1.19.2.