mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-18 22:24:39 +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;
|
return;
|
||||||
}
|
}
|
||||||
Plot plot = area.getOwnedPlot(location);
|
Plot plot = area.getOwnedPlot(location);
|
||||||
|
if (plot == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (event.getSource().getType()) {
|
switch (event.getSource().getType()) {
|
||||||
case GRASS:
|
case GRASS:
|
||||||
if (Flags.GRASS_GROW.isFalse(plot)) {
|
if (Flags.GRASS_GROW.isFalse(plot)) {
|
||||||
|
|
Loading…
Reference in a new issue