This commit is contained in:
manuelgu 2016-05-29 11:59:16 +02:00
parent 53e4b728a6
commit def33bc9ad

View File

@ -780,8 +780,7 @@ public class PlayerEvents extends PlotListener implements Listener {
return; return;
} }
Plot plot = area.getOwnedPlot(location); Plot plot = area.getOwnedPlot(location);
Optional<Boolean> flag; switch (event.getSource().getType()) {
switch (block.getType()) {
case GRASS: case GRASS:
if (Flags.GRASS_GROW.isFalse(plot)) { if (Flags.GRASS_GROW.isFalse(plot)) {
event.setCancelled(true); event.setCancelled(true);