From ItemStack[] is [] not {}

This commit is contained in:
libraryaddict 2020-02-15 19:56:06 +13:00
parent fc78734fd5
commit 10039f39c3
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -67,7 +67,7 @@ public class ParamInfoItemStackArray extends ParamInfoItemStack {
@Override @Override
public Object fromString(String string) { public Object fromString(String string) {
if (string.startsWith("{") && string.endsWith("}")) { if (string.startsWith("[") && string.endsWith("]")) {
try { try {
return DisguiseUtilities.getGson().fromJson(string, ItemStack[].class); return DisguiseUtilities.getGson().fromJson(string, ItemStack[].class);
} }