sync with server

This commit is contained in:
Skiftcha committed 2020-11-24 08:21:52 +03:00
1 parent 8c82d0fa41
commit 3ae2128564
5 files changed
+51 -9

No files matched your search

@@ -163,11 +163,7 @@ public class GuiChisel extends GuiContainer {
@Override
protected void mouseClicked(int xCoord, int yCoord, int btn) {
if (scrollBar != null) {
int currentScroll = scrollBar.getCurrentScroll();
scrollBar.click(xCoord - guiLeft, yCoord - guiTop);
if (currentScroll != scrollBar.getCurrentScroll()) {
menu.updateItems();
}
}
super.mouseClicked(xCoord, yCoord, btn);
}
@@ -178,11 +174,7 @@ public class GuiChisel extends GuiContainer {
int i = Mouse.getEventDWheel();
if (i != 0 && scrollBar != null) {
int currentScroll = scrollBar.getCurrentScroll();
scrollBar.wheel(i);
if (currentScroll != scrollBar.getCurrentScroll()) {
menu.updateItems();
}
}
}