mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +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++) {
|
||||
final T value1 = array1[i];
|
||||
for (int j = 0; j < length; j++) {
|
||||
final T value2 = array2[j];
|
||||
if (!value1.equals(value2)) {
|
||||
return false;
|
||||
}
|
||||
final T value2 = array2[i];
|
||||
if (!value1.equals(value2)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user