Add 'waterbiomeshaded' option to control water biome shading

This commit is contained in:
Mike Primm 2011-10-04 22:05:47 -05:00
parent e0752eba5b
commit ded2fa815c
5 changed files with 17 additions and 3 deletions

View file

@ -84,6 +84,7 @@ public class DynmapPlugin extends JavaPlugin {
public Events events = new Events();
public String deftemplatesuffix = "";
boolean swampshading = false;
boolean waterbiomeshading = false;
boolean fencejoin = false;
/* Flag to let code know that we're doing reload - make sure we don't double-register event handlers */
@ -253,6 +254,8 @@ public class DynmapPlugin extends JavaPlugin {
deftemplatesuffix = configuration.getString("deftemplatesuffix", "");
/* Default swamp shading off for 1.8, on after */
swampshading = configuration.getBoolean("swampshaded", !getServer().getVersion().contains("(MC: 1.8"));
/* Default water biome shading off for 1.8, on after */
waterbiomeshading = configuration.getBoolean("waterbiomeshaded", !getServer().getVersion().contains("(MC: 1.8"));
/* Default fence-to-block-join off for 1.8, on after */
fencejoin = configuration.getBoolean("fence-to-block-join", !getServer().getVersion().contains("(MC: 1.8"));