From 874f7575c1e89151ee0da66b6c1edc49ea354482 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 24 Sep 2014 20:30:15 +1000 Subject: [PATCH] Fixed infinite loop in plot claim (my fault) --- PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java | 1 - .../src/com/intellectualcrafters/plot/commands/Auto.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java index eeafad6af..649bdcd33 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java @@ -460,7 +460,6 @@ public class PlotHelper { final World world = requester.getWorld(); final Location pos1 = getPlotBottomLoc(world, plot.id).add(1,0,1); final Location pos2 = getPlotTopLoc(world, plot.id); - SetBlockFast setBlockClass = null; final short[] plotfloors = new short[plotworld.TOP_BLOCK.length]; final short[] plotfloors_data = new short[plotworld.TOP_BLOCK.length]; diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java index 26800a29a..e92cdb185 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Auto.java @@ -68,7 +68,7 @@ public class Auto extends SubCommand { if(PlotHelper.getPlot(world, id).owner == null) { Plot plot = PlotHelper.getPlot(world, id); boolean result = Claim.claimPlot(plr, plot, true); - br = result; + br = !result; } if(z < q && (z - x) < q) { z++;