Java 9 introduced a few bugs in the ancient client engine most people use, the most noticeable one is right mouse clicking.
Go to the class where you handle your mouse clicking, usually in RSApplet.java.
Search for this:
Code:
if (type == 2) {
mouseWheelDown = true;
mouseWheelX = i;
mouseWheelY = j;
return;
}
replace the if statement with:
Code:
if (SwingUtilities.isMiddleMouseButton(e)) {
Note that the argument of the method (
e) is the MouseEvent object reference, this might be named differently in your client.
Then search for:
Code:
if (mouseevent.isMetaDown()) {
clickMode1 = 2;
clickMode2 = 2;
}
Replace the first if statement with:
Code:
if(SwingUtilities.isRightMouseButton(e)) {
Then also in the following else block:
Code:
} else {
clickMode1 = 1;
clickMode2 = 1;
}
replace the else line with:
Code:
} else if(SwingUtilities.isLeftMouseButton(e)){
As pointed out by Jire, it is better to do it this way: