Fix condense with no plots

This commit is contained in:
boy0001 2015-03-14 00:29:58 +11:00
parent 61a225937d
commit cdcab96d89

View File

@ -94,6 +94,10 @@ public class Condense extends SubCommand {
} }
start = Auto.getNextPlot(start, 1); start = Auto.getNextPlot(start, 1);
} }
if (free.size() == 0 || to_move.size() == 0) {
MainUtil.sendMessage(plr, "NO PLOTS FOUND");
return false;
}
MainUtil.move(worldname, to_move.get(0), free.get(0), new Runnable() { MainUtil.move(worldname, to_move.get(0), free.get(0), new Runnable() {
@Override @Override
public void run() { public void run() {