From 455ab775ed3f1aa1483aa39d6f992b8ab80c7f81 Mon Sep 17 00:00:00 2001 From: CarmJos Date: Tue, 24 May 2022 18:48:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(bukkit):=20=E4=BF=AE=E5=A4=8DItem=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E6=9C=AA=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/pom.xml | 2 +- platform/bukkit/base/pom.xml | 2 +- .../bukkit/builder/item/ItemConfigBuilder.java | 6 +++--- platform/bukkit/general/pom.xml | 2 +- platform/bukkit/native/pom.xml | 2 +- platform/bukkit/pom.xml | 2 +- platform/bungee/pom.xml | 2 +- pom.xml | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/common/pom.xml b/common/pom.xml index 0fa9b1ba..5419691f 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 1.4.1 + 1.4.2 4.0.0 diff --git a/platform/bukkit/base/pom.xml b/platform/bukkit/base/pom.xml index c2807f7c..07fba5ff 100644 --- a/platform/bukkit/base/pom.xml +++ b/platform/bukkit/base/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-bukkit cc.carm.lib - 1.4.1 + 1.4.2 4.0.0 diff --git a/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/builder/item/ItemConfigBuilder.java b/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/builder/item/ItemConfigBuilder.java index 63498c72..6a37d909 100644 --- a/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/builder/item/ItemConfigBuilder.java +++ b/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/builder/item/ItemConfigBuilder.java @@ -17,11 +17,11 @@ public class ItemConfigBuilder extends AbstractCraftBuilder { protected Material type; - protected short data; - protected String name; + protected short data = 0; + protected String name = null; protected List lore = new ArrayList<>(); - protected @NotNull String[] params; + protected @NotNull String[] params = new String[0]; protected @NotNull Function<@NotNull String, @NotNull String> paramFormatter = ParamsUtils.DEFAULT_PARAM_FORMATTER; public ItemConfigBuilder defaults(@NotNull Material type, diff --git a/platform/bukkit/general/pom.xml b/platform/bukkit/general/pom.xml index 89192b2d..cfb6d828 100644 --- a/platform/bukkit/general/pom.xml +++ b/platform/bukkit/general/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-bukkit cc.carm.lib - 1.4.1 + 1.4.2 4.0.0 diff --git a/platform/bukkit/native/pom.xml b/platform/bukkit/native/pom.xml index 94c97805..42d868eb 100644 --- a/platform/bukkit/native/pom.xml +++ b/platform/bukkit/native/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-bukkit cc.carm.lib - 1.4.1 + 1.4.2 4.0.0 diff --git a/platform/bukkit/pom.xml b/platform/bukkit/pom.xml index 8624c16f..a00b5d4a 100644 --- a/platform/bukkit/pom.xml +++ b/platform/bukkit/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 1.4.1 + 1.4.2 ../../pom.xml 4.0.0 diff --git a/platform/bungee/pom.xml b/platform/bungee/pom.xml index 889ef046..ad7d2bbe 100644 --- a/platform/bungee/pom.xml +++ b/platform/bungee/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 1.4.1 + 1.4.2 ../../pom.xml 4.0.0 diff --git a/pom.xml b/pom.xml index f72a3e6f..26a94dd2 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ cc.carm.lib mineconfiguration-parent - 1.4.1 + 1.4.2 pom common