Fix issue with scroll wheel, fixes #128
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
- Added support for Storage Drawers void upgrade
|
- Added support for Storage Drawers void upgrade
|
||||||
- Added support for Deep Storage Unit API again
|
- Added support for Deep Storage Unit API again
|
||||||
|
|
||||||
|
**Bugfixes**
|
||||||
|
- Fixed crash when using scroll wheel
|
||||||
|
|
||||||
### 0.7.15
|
### 0.7.15
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
- Fixed not being able to scroll with the scroll wheel using MouseTweaks
|
- Fixed not being able to scroll with the scroll wheel using MouseTweaks
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public abstract class GuiBase extends GuiContainer {
|
|||||||
|
|
||||||
int d = Mouse.getEventDWheel();
|
int d = Mouse.getEventDWheel();
|
||||||
|
|
||||||
if (d != 0) {
|
if (scrollbar != null && d != 0) {
|
||||||
scrollbar.wheel(d);
|
scrollbar.wheel(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user