mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Add kelp-grow flag
Simply as the name says, add a controlled way to let kelp grow.
This commit is contained in:
parent
cdc01a5bc4
commit
cd26b1647d
2 changed files with 6 additions and 0 deletions
|
@ -1223,6 +1223,11 @@ import java.util.regex.Pattern;
|
|||
event.setCancelled(true);
|
||||
}
|
||||
break;
|
||||
case KELP:
|
||||
if (Flags.KELP_GROW.isFalse(plot)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ public final class Flags {
|
|||
public static final BooleanFlag GRASS_GROW = new BooleanFlag("grass-grow");
|
||||
public static final BooleanFlag VINE_GROW = new BooleanFlag("vine-grow");
|
||||
public static final BooleanFlag MYCEL_GROW = new BooleanFlag("mycel-grow");
|
||||
public static final BooleanFlag KELP_GROW = new BooleanFlag("kelp-grow");
|
||||
public static final BooleanFlag DISABLE_PHYSICS = new BooleanFlag("disable-physics");
|
||||
public static final BooleanFlag LIQUID_FLOW = new BooleanFlag("liquid-flow");
|
||||
public static final BooleanFlag SNOW_MELT = new BooleanFlag("snow-melt");
|
||||
|
|
Loading…
Reference in a new issue