quick fix : C-style array declaration

This commit is contained in:
Alexdoru committed 2023-01-25 21:05:22 +01:00
1 parent ea3ec429c1
commit 00117a7596
45 files changed
+47 -47

No files matched your search

@@ -27,7 +27,7 @@ public class GloveSpeed extends ItemModTypeFilter {
if (!tags.hasKey(key))
return tags.getInteger("Modifiers") > 0 && matchingAmount(modifiers) <= max; // This line fails?
int keyPair[] = tags.getIntArray(key);
int[] keyPair = tags.getIntArray(key);
if (keyPair[0] + matchingAmount(modifiers) <= keyPair[1]) return true;
else if (keyPair[0] == keyPair[1]) return tags.getInteger("Modifiers") > 0;
}