SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent

This commit is contained in:
md_5 2024-12-01 09:52:58 +11:00
parent fa85c5e0af
commit 40dd796db6
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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;