Merge pull request #2431 from IntellectualSites/kelp-grow

Add kelp-grow flag
This commit is contained in:
NotMyFault 2019-07-27 21:55:39 +02:00 committed by GitHub
commit 6d0849eb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");