There can only one of selection/location be set

This commit is contained in:
Brokkonaut
2018-11-07 20:55:44 +01:00
parent 8c6ee4cf0c
commit 4af5b3f1ea

View File

@ -879,11 +879,13 @@ public final class QueryParams implements Cloneable {
public void setLocation(Location loc) {
this.loc = loc;
this.sel = null;
world = loc.getWorld();
}
public void setSelection(CuboidRegion container) {
this.sel = container;
this.loc = null;
world = sel.getWorld();
}