From cdd6eb9c44251ff49d1dea304f5edeb10a3a6495 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 17 Mar 2015 20:42:16 +1100 Subject: [PATCH] Fix home location --- .../main/java/com/intellectualcrafters/plot/util/MainUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java index 1b559ee18..d60667641 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java @@ -100,7 +100,7 @@ public class MainUtil { final Location top = getPlotTopLoc(plot.world, plot.id); final Location bot = getPlotBottomLoc(plot.world, plot.id); final int x = ((top.getX() - bot.getX()) / 2) + bot.getX(); - final int z = 0; + final int z = bot.getZ(); PlotManager manager = PlotSquared.getPlotManager(plot.world); final int y = Math.max(getHeighestBlock(plot.world, x, z), manager.getSignLoc(PlotSquared.getPlotWorld(plot.world), plot).getY()); return new Location(plot.world, x, y, z);