mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
61ca2bcfef
commit
20071139d1
@ -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 New Issue
Block a user