Skip to content

Commit

Permalink
Fix block break road (sponge)
Browse files Browse the repository at this point in the history
  • Loading branch information
boy0001 committed Mar 27, 2016
1 parent 32e10fb commit 357400c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public void onChangeBlock(ChangeBlockEvent event) {
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);
Expand Down Expand Up @@ -479,7 +479,7 @@ public void onBlockBreak(ChangeBlockEvent.Break event) {
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)) {
Expand Down

0 comments on commit 357400c

Please sign in to comment.