From 2c7dbb310a4a0fd60218f56f449a4446a453c8ad Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 20 Feb 2023 02:29:15 +0100 Subject: fix: autotool now finally chooses swords --- src/main/java/ftbsc/bscv/tools/Inventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/ftbsc') 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); } } -- cgit v1.2.3-56-ga3b1