Better Combat [Fabric & Forge]

Better Combat [Fabric & Forge]

28M Downloads

`java.lang.ArithmeticException: / by zero` crash

Quadruplay opened this issue ยท 0 comments

commented

Minecraft version - 1.20.1
Mod loader - forge
Mod version - 1.8.6
I am using the latest version available - Yeah

Describe the bug
Game crashes when attacking; bug report says there's been a division by zero

To Reproduce
Steps to reproduce the behavior:

  1. Use same mods as me
  2. Use same datapacks as me:
    (minecraft:air is changed to this vvv)
{
  "parent": "bettercombat:punch",
  "attributes": {
    "attack_range": 2,
    "category": "fist",
    "attacks": [
      {
        "hitbox": "FORWARD_BOX",
        "conditions": ["DUAL_WIELDING_SAME_CATEGORY"],
        "upswing": 0.5,
        "animation": "bettercombat:one_handed_punch",
        "swing_sound": {
          "id": "bettercombat:fist_punch"
        }
      }
    ]
  }
}
  1. Attack air with a sword or bare hand
  2. Crash

Expected behavior
No crash

Screenshots or video recordings
No

Additional context
crash-2024-09-09_03.38.00-server.txt