mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-14 04:47:54 +00:00
Fix NPE
This commit is contained in:
parent
def33bc9ad
commit
8d6565c32c
1 changed files with 3 additions and 0 deletions
|
@ -780,6 +780,9 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||
return;
|
||||
}
|
||||
Plot plot = area.getOwnedPlot(location);
|
||||
if (plot == null) {
|
||||
return;
|
||||
}
|
||||
switch (event.getSource().getType()) {
|
||||
case GRASS:
|
||||
if (Flags.GRASS_GROW.isFalse(plot)) {
|
||||
|
|
Loading…
Reference in a new issue