mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
61ca2bcfef
commit
20071139d1
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<>();
|
||||
result.put("seconds", getCooldownSeconds());
|
||||
if (getCooldownGroup() != null) {
|
||||
result.put("cooldown-group", getCooldownGroup());
|
||||
result.put("cooldown-group", getCooldownGroup().toString());
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue