mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-25 17:08:32 +01:00
Fix block break road (sponge)
This commit is contained in:
parent
32e10fbff6
commit
357400c5ac
@ -431,7 +431,7 @@ public class MainListener {
|
||||
Location loc = SpongeUtil.getLocation(worldname, first.getOriginal().getPosition());
|
||||
Plot plot = loc.getPlot();
|
||||
if (plot == null) {
|
||||
if (loc.getPlotAbs() == null) {
|
||||
if (!loc.isPlotArea()) {
|
||||
return;
|
||||
}
|
||||
event.setCancelled(true);
|
||||
@ -479,7 +479,7 @@ public class MainListener {
|
||||
Location loc = SpongeUtil.getLocation(worldname, pos.getPosition());
|
||||
Plot plot = loc.getPlot();
|
||||
if (plot == null) {
|
||||
if (loc.getPlotAbs() == null) {
|
||||
if (!loc.isPlotArea()) {
|
||||
return;
|
||||
}
|
||||
if (!Permissions.hasPermission(pp, C.PERMISSION_ADMIN_DESTROY_ROAD)) {
|
||||
|
Loading…
Reference in New Issue
Block a user