Potential plot clear fix

This commit is contained in:
boy0001 2015-01-04 16:01:23 +11:00
parent bbf5ba4488
commit 0fdb358291

View File

@ -692,6 +692,17 @@ import java.util.UUID;
state = h; state = h;
manager.clearPlot(world, plot, isDelete); manager.clearPlot(world, plot, isDelete);
if (canSetFast) {
final Plugin plugin = PlotMain.getMain();
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
@Override
public void run() {
PlotHelper.setBiome(world, plot, Biome.FOREST);
refreshPlotChunks(world, plot);
}
}, 90L);
}
} }
/** /**
@ -724,7 +735,6 @@ import java.util.UUID;
removeSign(world, plot); removeSign(world, plot);
final Plugin plugin = PlotMain.getMain(); final Plugin plugin = PlotMain.getMain();
PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start)))); PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start))));
} }
public static void setCuboid(final World world, final Location pos1, final Location pos2, final PlotBlock newblock) { public static void setCuboid(final World world, final Location pos1, final Location pos2, final PlotBlock newblock) {