mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +01:00
Better Array handling
This commit is contained in:
parent
dff3e23821
commit
be34a2c84a
@ -2732,11 +2732,10 @@ public class DisguiseUtilities {
|
||||
case TAG_BYTE_ARRAY:
|
||||
case TAG_INT_ARRAY:
|
||||
case TAG_LONG_ARRAY:
|
||||
Object[] array = (Object[]) base.getValue();
|
||||
String[] str = new String[array.length];
|
||||
String[] str = new String[Array.getLength(base.getValue())];
|
||||
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
str[i] = array[i].toString();//+ getChar(base.getType());
|
||||
for (int i = 0; i < str.length; i++) {
|
||||
str[i] = Array.get(base.getValue(),i).toString();//+ getChar(base.getType());
|
||||
}
|
||||
|
||||
return "[" + StringUtils.join(str, ",") + "]";
|
||||
|
Loading…
Reference in New Issue
Block a user