mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Whoops.
This commit is contained in:
parent
ab5e826fe8
commit
9218147aa0
3 changed files with 4 additions and 1 deletions
|
@ -77,6 +77,9 @@ public class Rate extends SubCommand {
|
||||||
v2 -= 11 - entry.getValue().getAverageRating();
|
v2 -= 11 - entry.getValue().getAverageRating();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (v1 == v2) {
|
||||||
|
return -0;
|
||||||
|
}
|
||||||
return v2 > v1 ? 1 : -1;
|
return v2 > v1 ? 1 : -1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1032,7 +1032,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
||||||
Location loc = BukkitUtil.getLocation(blocks.get(0).getLocation());
|
Location loc = BukkitUtil.getLocation(blocks.get(0).getLocation());
|
||||||
final Plot origin = MainUtil.getPlot(loc);
|
final Plot origin = MainUtil.getPlot(loc);
|
||||||
if (origin == null) {
|
if (origin == null) {
|
||||||
if (MainUtil.isPlotAreaAbs(null)) {
|
if (MainUtil.isPlotAreaAbs(loc)) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue