mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user