From ItemStack[] is [] not {}
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user