SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
This commit is contained in:
parent
fa85c5e0af
commit
40dd796db6
@ -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…
x
Reference in New Issue
Block a user