From a79a3adcba1648122bf8272839406d552aa5abde Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 19 Oct 2014 22:12:23 +1100 Subject: [PATCH] fixed some really weird bugs... like WTF, how does checking event.getTo() cause the player spawns to change!? --- .../intellectualcrafters/plot/PlotHelper.java | 29 ++++++++++++++----- .../plot/listeners/PlayerEvents.java | 17 ++++++----- .../plot/listeners/WorldEditListener.java | 3 +- 3 files changed, 32 insertions(+), 17 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java index 61ccfa7bb..676ab9fd7 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java @@ -770,23 +770,38 @@ public class PlotHelper { PlotMain.updatePlot(plot); refreshPlotChunks(world, plot); } + public static int getHeighestBlock(World world, int x, int z) { + boolean safe = false; + for (int i = 1; i