mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 10:44:42 +02:00
Fixes
Possible fix for trim: #482 Fixes #480 Possible fix for #481 Reduce plot move debugspam
This commit is contained in:
@ -134,7 +134,7 @@ public class Trim extends SubCommand {
|
||||
return;
|
||||
}
|
||||
final Plot plot = plots.remove(0);
|
||||
plots.remove(0);
|
||||
|
||||
final Location pos1 = MainUtil.getPlotBottomLoc(world, plot.id);
|
||||
final Location pos2 = MainUtil.getPlotTopLoc(world, plot.id);
|
||||
|
||||
|
@ -351,6 +351,9 @@ public class MainUtil {
|
||||
|
||||
public static boolean isPlotAreaAbs(final Location location) {
|
||||
final PlotWorld plotworld = PS.get().getPlotWorld(location.getWorld());
|
||||
if (plotworld == null) {
|
||||
return false;
|
||||
}
|
||||
if (plotworld.TYPE == 2) {
|
||||
return ClusterManager.getClusterAbs(location) != null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user