mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-01 13:14:43 +02:00
Minor tweaks
This commit is contained in:
@ -661,7 +661,6 @@ public class MainUtil {
|
||||
public static Location getDefaultHome(Plot plot) {
|
||||
plot = plot.getBasePlot(false);
|
||||
final PlotWorld plotworld = PS.get().getPlotWorld(plot.world);
|
||||
if (plotworld.DEFAULT_HOME != null) {
|
||||
if (plotworld.DEFAULT_HOME != null) {
|
||||
final int x;
|
||||
final int z;
|
||||
@ -675,7 +674,7 @@ public class MainUtil {
|
||||
Location bot = plot.getBottomAbs();
|
||||
x = bot.getX() + plotworld.DEFAULT_HOME.x;
|
||||
z = bot.getZ() + plotworld.DEFAULT_HOME.z;
|
||||
}
|
||||
}
|
||||
final int y = getHeighestBlock(plot.world, x, z);
|
||||
return new Location(plot.world, x, y + 1, z);
|
||||
}
|
||||
|
Reference in New Issue
Block a user