mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
GeyserSession: Set a default value for attackSpeed (#1419)
Fixes cooldowns not showing on a fresh world.
This commit is contained in:
parent
18e2a52d98
commit
b02bc33393
1 changed files with 2 additions and 1 deletions
|
@ -194,9 +194,10 @@ public class GeyserSession implements CommandSender {
|
|||
|
||||
/**
|
||||
* The current attack speed of the player. Used for sending proper cooldown timings.
|
||||
* Setting a default fixes cooldowns not showing up on a fresh world.
|
||||
*/
|
||||
@Setter
|
||||
private double attackSpeed;
|
||||
private double attackSpeed = 4.0d;
|
||||
/**
|
||||
* The time of the last hit. Used to gauge how long the cooldown is taking.
|
||||
* This is a session variable in order to prevent more scheduled threads than necessary.
|
||||
|
|
Loading…
Reference in a new issue