mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Fix home location
This commit is contained in:
parent
b06999f2be
commit
cdd6eb9c44
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user