SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user