fixed auto/purge

This commit is contained in:
Jesse Boyd 2015-01-15 23:04:55 -08:00
parent 6a238fe099
commit 8e8ff6d3aa
3 changed files with 23 additions and 12 deletions

View file

@ -201,7 +201,7 @@ public class Auto extends SubCommand {
}
public PlotId getLastPlot(String world) {
if (PlotHelper.lastPlot == null) {
if (PlotHelper.lastPlot == null || !PlotHelper.lastPlot.containsKey(world)) {
PlotHelper.lastPlot.put(world, new PlotId(0,0));
}
return PlotHelper.lastPlot.get(world);