Fixed issue #376 "right-clicking with a compass on a door is treated if the door was not there and the left mousebutton was clicked."

Also when you use the compass for jumpto/thru it wont interact with items anymore.
This commit is contained in:
hretsam
2011-08-10 21:02:02 +02:00
committed by Wizjany
parent 5e45fd1625
commit ddcf948974
2 changed files with 31 additions and 1 deletions

View File

@ -77,6 +77,7 @@ public class LocalSession {
private boolean fastMode = false;
private Mask mask;
private TimeZone timezone = TimeZone.getDefault();
private Boolean jumptoBlock = true;
/**
* Construct the object.
@ -702,4 +703,20 @@ public class LocalSession {
public void setMask(Mask mask) {
this.mask = mask;
}
/**
* This is used as a workaround for a bug.
* It blocks the compass from using the jumpto function after the thru function
*/
public void toggleJumptoBlock() {
this.jumptoBlock = !jumptoBlock;
}
/**
* This is used as a workaround for a bug.
* @return true if the compass's jumpto function can be used again
*/
public Boolean canUseJumpto() {
return jumptoBlock;
}
}