mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +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
@@ -47,9 +47,7 @@ public class TabRegistry {
|
||||
|
||||
public static void updateTabValues(int cornerX, int cornerY, Class<?> selectedButton) {
|
||||
int count = 2;
|
||||
for (int i = 0; i < tabList.size(); i++) {
|
||||
AbstractTab t = tabList.get(i);
|
||||
|
||||
for (AbstractTab t : tabList) {
|
||||
if (t.shouldAddToList()) {
|
||||
t.id = count;
|
||||
t.xPosition = cornerX + (count - 2) * 28;
|
||||
|
||||
Reference in new issue
Block a user