mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Fixed infinite loop in plot claim (my fault)
This commit is contained in:
parent
e65d20d5f1
commit
874f7575c1
@ -460,7 +460,6 @@ public class PlotHelper {
|
|||||||
final World world = requester.getWorld();
|
final World world = requester.getWorld();
|
||||||
final Location pos1 = getPlotBottomLoc(world, plot.id).add(1,0,1);
|
final Location pos1 = getPlotBottomLoc(world, plot.id).add(1,0,1);
|
||||||
final Location pos2 = getPlotTopLoc(world, plot.id);
|
final Location pos2 = getPlotTopLoc(world, plot.id);
|
||||||
SetBlockFast setBlockClass = null;
|
|
||||||
|
|
||||||
final short[] plotfloors = new short[plotworld.TOP_BLOCK.length];
|
final short[] plotfloors = new short[plotworld.TOP_BLOCK.length];
|
||||||
final short[] plotfloors_data = new short[plotworld.TOP_BLOCK.length];
|
final short[] plotfloors_data = new short[plotworld.TOP_BLOCK.length];
|
||||||
|
@ -68,7 +68,7 @@ public class Auto extends SubCommand {
|
|||||||
if(PlotHelper.getPlot(world, id).owner == null) {
|
if(PlotHelper.getPlot(world, id).owner == null) {
|
||||||
Plot plot = PlotHelper.getPlot(world, id);
|
Plot plot = PlotHelper.getPlot(world, id);
|
||||||
boolean result = Claim.claimPlot(plr, plot, true);
|
boolean result = Claim.claimPlot(plr, plot, true);
|
||||||
br = result;
|
br = !result;
|
||||||
}
|
}
|
||||||
if(z < q && (z - x) < q) {
|
if(z < q && (z - x) < q) {
|
||||||
z++;
|
z++;
|
||||||
|
Loading…
Reference in New Issue
Block a user