mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-05 16:49:30 +00:00
SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
This commit is contained in:
parent
fa85c5e0af
commit
40dd796db6
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ public final class CraftUseCooldownComponent implements UseCooldownComponent {
|
||||||
Map<String, Object> result = new LinkedHashMap<>();
|
Map<String, Object> result = new LinkedHashMap<>();
|
||||||
result.put("seconds", getCooldownSeconds());
|
result.put("seconds", getCooldownSeconds());
|
||||||
if (getCooldownGroup() != null) {
|
if (getCooldownGroup() != null) {
|
||||||
result.put("cooldown-group", getCooldownGroup());
|
result.put("cooldown-group", getCooldownGroup().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue