Better Array handling
This commit is contained in:
		| @@ -2732,11 +2732,10 @@ public class DisguiseUtilities { | |||||||
|             case TAG_BYTE_ARRAY: |             case TAG_BYTE_ARRAY: | ||||||
|             case TAG_INT_ARRAY: |             case TAG_INT_ARRAY: | ||||||
|             case TAG_LONG_ARRAY: |             case TAG_LONG_ARRAY: | ||||||
|                 Object[] array = (Object[]) base.getValue(); |                 String[] str = new String[Array.getLength(base.getValue())]; | ||||||
|                 String[] str = new String[array.length]; |  | ||||||
|  |  | ||||||
|                 for (int i = 0; i < array.length; i++) { |                 for (int i = 0; i < str.length; i++) { | ||||||
|                     str[i] = array[i].toString();//+ getChar(base.getType()); |                     str[i] = Array.get(base.getValue(),i).toString();//+ getChar(base.getType()); | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 return "[" + StringUtils.join(str, ",") + "]"; |                 return "[" + StringUtils.join(str, ",") + "]"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user