diff options
author | alemi <me@alemi.dev> | 2023-02-20 02:29:15 +0100 |
---|---|---|
committer | alemi <me@alemi.dev> | 2023-02-20 02:29:15 +0100 |
commit | 2c7dbb310a4a0fd60218f56f449a4446a453c8ad (patch) | |
tree | 6147998c689fb7dc71a9c9cdfd9d382de8f9f874 /src | |
parent | ae65fb2593f436580e2ff9495e0fb68ee78dccde (diff) |
fix: autotool now finally chooses swords
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/ftbsc/bscv/tools/Inventory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/ftbsc/bscv/tools/Inventory.java b/src/main/java/ftbsc/bscv/tools/Inventory.java index b47950f..e63d0d1 100644 --- a/src/main/java/ftbsc/bscv/tools/Inventory.java +++ b/src/main/java/ftbsc/bscv/tools/Inventory.java @@ -31,6 +31,6 @@ public class Inventory implements ICommons { .get(Attributes.ATTACK_SPEED); if (speed_attrs.isEmpty()) return damage; double speed = Math.abs(speed_attrs.iterator().next().getAmount()); - return damage * speed; + return damage / (1. + speed); } } |