mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 19:34:09 +00:00
Fixed GuiScrollWindow scrolling when a subgui is open
This commit is contained in:
1 parent
06483566cf
commit
00ea0200c4
1 file changed
+1
-1
@@ -292,7 +292,7 @@ public class GuiScrollWindow extends GuiScreen implements ITextfieldListener, IC
|
||||
public void adjustScroll(int mouseX, int mouseY, int mouseScroll) {
|
||||
mouseX -= xPos;
|
||||
mouseY -= yPos;
|
||||
if (Mouse.isButtonDown(0)) {
|
||||
if (Mouse.isButtonDown(0) && !parent.hasSubGui()) {
|
||||
if (mouseX >= clipWidth - 9 && mouseX < clipWidth - 4 && mouseY >= 4 && mouseY < clipHeight) {
|
||||
isScrolling = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user