From 17720027002be035c822a57c6e2dcc7a63e4df78 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 12 Oct 2014 10:13:44 -0700 Subject: [PATCH] actually fixed it --- .../src/com/intellectualcrafters/plot/PlotHelper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java index 4dca5b010..4f08dc048 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotHelper.java @@ -751,9 +751,7 @@ public class PlotHelper { public static Location getPlotHome(World w, PlotId plotid) { PlotMain.getWorldSettings(w); if (getPlot(w, plotid).settings.getPosition() == PlotHomePosition.DEFAULT) { - int x = - getPlotBottomLoc(w, plotid).getBlockX() - + (getPlotTopLoc(w, plotid).getBlockX() - getPlotBottomLoc(w, plotid).getBlockX()); + int x = getPlotBottomLoc(w, plotid).getBlockX() + (getPlotTopLoc(w, plotid).getBlockX() - getPlotBottomLoc(w, plotid).getBlockX()); int z = getPlotBottomLoc(w, plotid).getBlockZ() - 2; int y = w.getHighestBlockYAt(x, z); return new Location(w, x, y + 2, z); @@ -768,7 +766,7 @@ public class PlotHelper { int x = top.getBlockX() - bot.getBlockX(); int z = top.getBlockZ() - bot.getBlockZ(); int y = w.getHighestBlockYAt(x, z); - return new Location(w, x, y + 2, z); + return new Location(w, bot.getBlockX() + x/2, y + 2, bot.getBlockZ() + z/2); } }