mirror of
https://github.com/CarmJos/EasyPlugin.git
synced 2026-06-04 08:38:17 +08:00
fix(gui): 修复 GUIItemConfiguration 序列化错误的问题
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>easyplugin-parent</artifactId>
|
||||
<groupId>cc.carm.lib</groupId>
|
||||
<version>1.4.7</version>
|
||||
<version>1.4.8</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
+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