Fix issue with scroll wheel, fixes #128

This commit is contained in:
Raoul Van den Berge
2016-06-19 17:28:21 +02:00
parent 267b2c1916
commit d3a4bf095c
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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);
} }
} }