How do I disable mouse wheel scrolling whilst an interface is open? I tried to do this on my own but couldn't get it working because it can't find "player" since it's in the server file
Code:
player.getInterfaceManager().sendInterface(i);
Here is the whole code unedited:
Code:
if (!mousewheelevent.isControlDown() && !mousewheelevent.isShiftDown() && Configuration.ZoomSetting) {
if (mousewheelevent.getWheelRotation() == +1) {// Out
if (client.zoom >= 80) { //80 Recommended Value
client.zoom -= 16; //This is how much it decrements.
Class305.method3752(184, client.zoom, 644551429);
} else {
Class255.consolePrint("You can not zoom any farther outwards!", 93254474);
return;
}
}
if (mousewheelevent.getWheelRotation() == -1) {// In
if (client.zoom < 608) { //608 Recommended Value
client.zoom += 16; //This is how much it increments.
Class305.method3752(184, client.zoom, 644551429);
} else {
Class255.consolePrint("You can not zoom any farther inwards!", 93254474);
return;
}
}
}