mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Fix ArrayUtils#sameStart
Fixes #370, which was a weird occurrence of this bug lmao
This commit is contained in:
parent
b9864a1a28
commit
0724b8639b
@ -94,11 +94,9 @@ public final class ArrayUtils {
|
|||||||
|
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
final T value1 = array1[i];
|
final T value1 = array1[i];
|
||||||
for (int j = 0; j < length; j++) {
|
final T value2 = array2[i];
|
||||||
final T value2 = array2[j];
|
if (!value1.equals(value2)) {
|
||||||
if (!value1.equals(value2)) {
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user