Skip to content

Commit 303d9ec

Browse files
Hide cooldown indicator completely in 1.8->1.9 (#4006)
* Change 1.8 to 1.9 Attack Speed * Fix The Attack Speed Value Type * Change Attack Speed to 20 Requested/Suggested change from FlorianMichael Co-authored-by: EnZaXD <florian.michael07@gmail.com> --------- Co-authored-by: EnZaXD <florian.michael07@gmail.com>
1 parent 463381b commit 303d9ec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/rewriter/EntityPacketRewriter1_9.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,8 @@ public void register() {
302302
}
303303
properties.put(key, new Pair<>(value, modifiers));
304304
}
305-
306-
// == Why 15.9? ==
307-
// Higher values hides the cooldown but it bugs visual animation on hand
308-
// when removing item from hand with inventory gui
309-
properties.put("generic.attackSpeed", new Pair<>(15.9, ImmutableList.of( // Neutralize modifiers
305+
306+
properties.put("generic.attackSpeed", new Pair<>(20.0, ImmutableList.of( // Neutralize modifiers
310307
new Triple<>(UUID.fromString("FA233E1C-4180-4865-B01B-BCCE9785ACA3"), 0.0, (byte) 0), // Tool and weapon modifier
311308
new Triple<>(UUID.fromString("AF8B6E3F-3328-4C0A-AA36-5BA2BB9DBEF3"), 0.0, (byte) 2), // Dig speed
312309
new Triple<>(UUID.fromString("55FCED67-E92A-486E-9800-B47F202C4386"), 0.0, (byte) 2) // Dig slow down

0 commit comments

Comments
 (0)