mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-01 08:10:00 +01:00
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>
This commit is contained in:
parent
463381b84e
commit
303d9ecf51
@ -302,11 +302,8 @@ public class EntityPacketRewriter1_9 extends EntityRewriter<ClientboundPackets1_
|
||||
}
|
||||
properties.put(key, new Pair<>(value, modifiers));
|
||||
}
|
||||
|
||||
// == Why 15.9? ==
|
||||
// Higher values hides the cooldown but it bugs visual animation on hand
|
||||
// when removing item from hand with inventory gui
|
||||
properties.put("generic.attackSpeed", new Pair<>(15.9, ImmutableList.of( // Neutralize modifiers
|
||||
|
||||
properties.put("generic.attackSpeed", new Pair<>(20.0, ImmutableList.of( // Neutralize modifiers
|
||||
new Triple<>(UUID.fromString("FA233E1C-4180-4865-B01B-BCCE9785ACA3"), 0.0, (byte) 0), // Tool and weapon modifier
|
||||
new Triple<>(UUID.fromString("AF8B6E3F-3328-4C0A-AA36-5BA2BB9DBEF3"), 0.0, (byte) 2), // Dig speed
|
||||
new Triple<>(UUID.fromString("55FCED67-E92A-486E-9800-B47F202C4386"), 0.0, (byte) 2) // Dig slow down
|
||||
|
Loading…
Reference in New Issue
Block a user