mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Whoops.
This commit is contained in:
parent
ab5e826fe8
commit
9218147aa0
@ -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 New Issue
Block a user