There can only one of selection/location be set
This commit is contained in:
1 parent
8c6ee4cf0c
commit
4af5b3f1ea
1 file changed
+2
@@ -879,11 +879,13 @@ public final class QueryParams implements Cloneable {
|
|||||||
|
|
||||||
public void setLocation(Location loc) {
|
public void setLocation(Location loc) {
|
||||||
this.loc = loc;
|
this.loc = loc;
|
||||||
|
this.sel = null;
|
||||||
world = loc.getWorld();
|
world = loc.getWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSelection(CuboidRegion container) {
|
public void setSelection(CuboidRegion container) {
|
||||||
this.sel = container;
|
this.sel = container;
|
||||||
|
this.loc = null;
|
||||||
world = sel.getWorld();
|
world = sel.getWorld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user