summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-02-20 02:29:15 +0100
committer alemi <me@alemi.dev>2023-02-20 02:29:15 +0100
commit2c7dbb310a4a0fd60218f56f449a4446a453c8ad (patch)
tree6147998c689fb7dc71a9c9cdfd9d382de8f9f874 /src/main/java
parentae65fb2593f436580e2ff9495e0fb68ee78dccde (diff)
fix: autotool now finally chooses swords
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/ftbsc/bscv/tools/Inventory.java2
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);
}
}