Fix ItemStack serializer being unable to serialize some items
Fix PlayerDisguise using code I forgot to use, instead of real code
This commit is contained in:
@@ -64,6 +64,11 @@ public class ParamInfoItemStack extends ParamInfoEnum {
|
||||
return name;
|
||||
}
|
||||
|
||||
// If its not a CraftItemStack
|
||||
if (item.getClass().getSimpleName().equals("ItemStack") && item.hasItemMeta()) {
|
||||
item = ReflectionManager.getCraftItem(item);
|
||||
}
|
||||
|
||||
String itemName = ReflectionManager.getItemName(item.getType());
|
||||
ArrayList<String> mcArray = new ArrayList<>();
|
||||
|
||||
|
Reference in New Issue
Block a user