This commit is contained in:
boy0001 2015-02-19 21:29:17 +11:00
parent 55e2465bee
commit eb828639bb
56 changed files with 83 additions and 133 deletions

View file

@ -30,8 +30,8 @@ import com.intellectualcrafters.plot.PlotSquared;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.generator.HybridPlotManager;
import com.intellectualcrafters.plot.generator.HybridPlotWorld;
import com.intellectualcrafters.plot.util.SetBlockManager;
import com.intellectualcrafters.plot.util.PlayerFunctions;
import com.intellectualcrafters.plot.util.SetBlockManager;
public class DebugRoadRegen extends SubCommand {
@ -46,7 +46,7 @@ public class DebugRoadRegen extends SubCommand {
}
HybridPlotManager manager = (HybridPlotManager) PlotSquared.getPlotManager(player.getWorld());
Chunk chunk = player.getLocation().getChunk();
Chunk chunk = BukkitUtil.getLocation(entity).getChunk();
boolean result = manager.regenerateRoad(chunk);
if (result) {
SetBlockManager.setBlockManager.update(Arrays.asList(new Chunk[] {chunk}));