SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-12-01 09:52:58 +11:00
parent 61ca2bcfef
commit 20071139d1

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;