Clone QueryParams before using them async

Fixes #696, Fixes #684
This commit is contained in:
Brokkonaut
2018-08-01 02:47:27 +02:00
parent c30aba4f90
commit dd58019be1
2 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ public final class QueryParams implements Cloneable {
}
@Override
protected QueryParams clone() {
public QueryParams clone() {
try {
final QueryParams params = (QueryParams) super.clone();
params.players = new ArrayList<String>(players);

View File

@ -48,7 +48,7 @@ public class ToolListener implements Listener {
return;
}
final Block block = event.getClickedBlock();
final QueryParams params = toolData.params;
final QueryParams params = toolData.params.clone();
params.loc = null;
params.sel = null;
if (behavior == ToolBehavior.BLOCK) {