mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-22 21:19:51 +00:00
Fix the underlying problem -- Bad X!
This commit is contained in:
1 parent
4375a91220
commit
10c2326184
4 files changed
+11
-14
No files matched your search
@@ -107,6 +107,10 @@ public class ItemPanel extends Widget {
|
||||
};
|
||||
}
|
||||
|
||||
public int getX(GuiContainer gui) {
|
||||
return (gui.xSize + gui.width) / 2 + 3;
|
||||
}
|
||||
|
||||
public int getMarginLeft() {
|
||||
return x + (w % 18) / 2;
|
||||
}
|
||||
@@ -177,7 +181,7 @@ public class ItemPanel extends Widget {
|
||||
pageLabel.text = getLabelText();
|
||||
|
||||
y = prev.h + prev.y;
|
||||
x = (gui.xSize + gui.width) / 2 + 3;
|
||||
x = getX(gui);
|
||||
w = getWidth(gui);
|
||||
h = getHeight(gui);
|
||||
|
||||
|
||||
Reference in new issue
Block a user