Skip to content

Commit 470d63d

Browse files
committed
2.3.3 Update
1 parent f1106d5 commit 470d63d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/com/loohp/interactivechat/Utils/ChatComponentUtils.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,23 @@ public static BaseComponent respectClientColorSettingsWithoutCleanUp(BaseCompone
205205
}
206206

207207
public static BaseComponent join(BaseComponent base, BaseComponent... basecomponentarray) {
208-
BaseComponent product = base;
209-
for (BaseComponent each : basecomponentarray) {
210-
product.addExtra(each);
208+
if (basecomponentarray.length <= 0) {
209+
return base;
210+
} else {
211+
BaseComponent product = base;
212+
for (BaseComponent each : basecomponentarray) {
213+
product.addExtra(each);
214+
}
215+
return product;
211216
}
212-
return product;
213217
}
214218

215219
public static BaseComponent join(BaseComponent[] basecomponentarray) {
216-
return join(basecomponentarray[0], Arrays.copyOfRange(basecomponentarray, 1, basecomponentarray.length));
220+
if (basecomponentarray.length <= 1) {
221+
return basecomponentarray[0];
222+
} else {
223+
return join(basecomponentarray[0], Arrays.copyOfRange(basecomponentarray, 1, basecomponentarray.length));
224+
}
217225
}
218226

219227
}

src/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: InteractiveChat
22
author: loohp
3-
version: 2.3.2
3+
version: 2.3.3
44
main: com.loohp.interactivechat.InteractiveChat
55
api-version: 1.13
66
description: Make the chat interactive

0 commit comments

Comments
 (0)