small cleanup

This commit is contained in:
Skiftcha committed 2020-11-24 09:26:33 +03:00
1 parent 587afa8e1d
commit 346a818a5a
3 files changed
+5 -13

No files matched your search

@@ -148,23 +148,16 @@ public class GuiChisel extends GuiContainer {
super.func_146977_a(slot);
}
}
@Override
protected void mouseClickMove(int x, int y, int c, long d) {
if (scrollBar != null) {
int currentScroll = scrollBar.getCurrentScroll();
scrollBar.click(x - guiLeft, y - guiTop);
if (currentScroll != scrollBar.getCurrentScroll()) {
menu.updateItems();
}
}
super.mouseClickMove(x, y, c, d );
scrollBar.click(x - guiLeft, y - guiTop);
super.mouseClickMove(x, y, c, d);
}
@Override
protected void mouseClicked(int xCoord, int yCoord, int btn) {
if (scrollBar != null) {
scrollBar.click(xCoord - guiLeft, yCoord - guiTop);
}
scrollBar.click(xCoord - guiLeft, yCoord - guiTop);
super.mouseClicked(xCoord, yCoord, btn);
}