Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
GeyserSession: Set a default value for attackSpeed (#1419)
Fixes cooldowns not showing on a fresh world.
Dieser Commit ist enthalten in:
Ursprung
18e2a52d98
Commit
b02bc33393
@ -194,9 +194,10 @@ public class GeyserSession implements CommandSender {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The current attack speed of the player. Used for sending proper cooldown timings.
|
* 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
|
@Setter
|
||||||
private double attackSpeed;
|
private double attackSpeed = 4.0d;
|
||||||
/**
|
/**
|
||||||
* The time of the last hit. Used to gauge how long the cooldown is taking.
|
* 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.
|
* This is a session variable in order to prevent more scheduled threads than necessary.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren