mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 03:25:38 +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
@@ -2,17 +2,14 @@ package codechicken.nei;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
public class WidgetZOrder
|
||||
implements Comparator<Widget>
|
||||
{
|
||||
public class WidgetZOrder implements Comparator<Widget> {
|
||||
final boolean topfirst;
|
||||
public WidgetZOrder(boolean topfirst)
|
||||
{
|
||||
|
||||
public WidgetZOrder(boolean topfirst) {
|
||||
this.topfirst = topfirst;
|
||||
}
|
||||
|
||||
public int compare(Widget w1, Widget w2)
|
||||
{
|
||||
public int compare(Widget w1, Widget w2) {
|
||||
return w1.z != w2.z ? ((topfirst ? w1.z > w2.z : w1.z < w2.z) ? 1 : -1) : 1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user