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;
}
Plot plot = area.getOwnedPlot(location);
Optional<Boolean> flag;
switch (block.getType()) {
switch (event.getSource().getType()) {
case GRASS:
if (Flags.GRASS_GROW.isFalse(plot)) {
event.setCancelled(true);