mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : C-style array declaration
This commit is contained in:
1 parent
b28b754ea9
commit
825643a7c4
45 files changed
+47
-47
No files matched your search
@@ -29,7 +29,7 @@ public class ModLapis extends ItemModTypeFilter {
|
||||
|
||||
if (!tags.hasKey(key)) return tags.getInteger("Modifiers") > 0 && matchingAmount(input) <= max;
|
||||
|
||||
int keyPair[] = tags.getIntArray(key);
|
||||
int[] keyPair = tags.getIntArray(key);
|
||||
if (keyPair[0] + matchingAmount(input) <= max) return true;
|
||||
}
|
||||
return false;
|
||||
@@ -52,7 +52,7 @@ public class ModLapis extends ItemModTypeFilter {
|
||||
}
|
||||
|
||||
int increase = matchingAmount(input);
|
||||
int keyPair[] = tags.getIntArray(key);
|
||||
int[] keyPair = tags.getIntArray(key);
|
||||
keyPair[0] += increase;
|
||||
tags.setIntArray(key, keyPair);
|
||||
ToolCore toolcore = (ToolCore) tool.getItem();
|
||||
@@ -81,7 +81,7 @@ public class ModLapis extends ItemModTypeFilter {
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
if (!tags.hasKey(key)) return;
|
||||
|
||||
int keyPair[] = tags.getIntArray(key);
|
||||
int[] keyPair = tags.getIntArray(key);
|
||||
if (keyPair[0] == max) return;
|
||||
|
||||
if (random.nextInt(50) == 0) {
|
||||
|
||||
Reference in new issue
Block a user