mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Fix grow flags
This commit is contained in:
commit
e6433a24ab
1 changed files with 4 additions and 2 deletions
|
@ -109,7 +109,6 @@ import org.bukkit.plugin.Plugin;
|
|||
import org.bukkit.projectiles.BlockProjectileSource;
|
||||
import org.bukkit.projectiles.ProjectileSource;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
|
@ -780,7 +779,10 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||
return;
|
||||
}
|
||||
Plot plot = area.getOwnedPlot(location);
|
||||
switch (block.getType()) {
|
||||
if (plot == null) {
|
||||
return;
|
||||
}
|
||||
switch (event.getSource().getType()) {
|
||||
case GRASS:
|
||||
if (Flags.GRASS_GROW.isFalse(plot)) {
|
||||
event.setCancelled(true);
|
||||
|
|
Loading…
Reference in a new issue