1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2026-06-04 16:48:16 +08:00

fix(gui): 修复 GUIItemConfiguration 序列化错误的问题

This commit is contained in:
2022-06-18 05:31:41 +08:00
parent 123e5463ad
commit e416363751
12 changed files with 12 additions and 12 deletions
@@ -56,7 +56,7 @@ public class GUIItemConfiguration {
if (this.slots.size() > 1) {
map.put("slots", this.slots);
} else if (slots.size() == 1) {
map.put("slots", this.slots.get(0));
map.put("slot", this.slots.get(0));
}
if (!this.actions.isEmpty()) {
map.put("actions", this.actions.stream().map(GUIActionConfiguration::serialize).collect(Collectors.toList()));