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:
+1
-1
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user