Add kelp-grow flag

Simply as the name says, add a controlled way to let kelp grow.
This commit is contained in:
NotMyFault 2019-07-20 01:29:30 +02:00 committed by MattBDev
parent cdc01a5bc4
commit cd26b1647d
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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");