mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
quick fixes : enhanced for loop
This commit is contained in:
1 parent
59f3b5b72a
commit
83f54f1e97
33 files changed
+74
-96
No files matched your search
@@ -150,8 +150,8 @@ public class TinkerToolEvents {
|
||||
|
||||
private boolean allowCrafting(int head, int handle, int accessory) {
|
||||
int[] nonMetals = {0, 1, 3, 4, 5, 6, 7, 8, 9, 17};
|
||||
for (int i = 0; i < nonMetals.length; i++) {
|
||||
if (head == nonMetals[i] || handle == nonMetals[i] || accessory == nonMetals[i]) return false;
|
||||
for (int nonMetal : nonMetals) {
|
||||
if (head == nonMetal || handle == nonMetal || accessory == nonMetal) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user