From 94a113ea4d6052d629b80d58b78518a392b26181 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 13 Jan 2015 21:03:32 +1100 Subject: [PATCH] Fix plot home being underground --- .../java/com/intellectualcrafters/plot/util/PlotHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java index 32aefce28..e13ce0e37 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java @@ -900,7 +900,8 @@ import java.util.UUID; return new Location(w, bot.getBlockX() + (x / 2), y, bot.getBlockZ() + (z / 2)); } else { - return bot.add(home.x, home.y, home.z); + final int y = getHeighestBlock(w, home.x, home.z); + return bot.add(home.x, home.y + y, home.z); } }