mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 20:52:11 +00:00
Update buildscript & apply automatic formatting rules
This commit is contained in:
1 parent
a7683b885d
commit
f7a900e910
173 files changed
+4581
-5321
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package codechicken.nei.config;
|
||||
|
||||
public class OptionCycled extends OptionButton
|
||||
{
|
||||
public class OptionCycled extends OptionButton {
|
||||
public final int count;
|
||||
public final boolean prefixed;
|
||||
|
||||
@@ -36,12 +35,10 @@ public class OptionCycled extends OptionButton
|
||||
|
||||
public boolean cycle() {
|
||||
int next = value();
|
||||
do
|
||||
next = (next + 1) % count;
|
||||
do next = (next + 1) % count;
|
||||
while (!optionValid(next));
|
||||
|
||||
if (next == value())
|
||||
return false;
|
||||
if (next == value()) return false;
|
||||
|
||||
getTag().setIntValue(next);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user