Fix issue with scroll wheel, fixes #128
This commit is contained in:
@@ -127,7 +127,7 @@ public abstract class GuiBase extends GuiContainer {
|
||||
|
||||
int d = Mouse.getEventDWheel();
|
||||
|
||||
if (d != 0) {
|
||||
if (scrollbar != null && d != 0) {
|
||||
scrollbar.wheel(d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user