From 0a8dc5b47d60f93840cfcf8e4adfcbeba51d7427 Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 19 Jan 2011 02:49:20 -0800 Subject: [PATCH] Added new configuration to default config.yml. Changed navigation configuration variables for Bukkit. --- config.yml | 4 ++++ src/com/sk89q/worldedit/bukkit/BukkitConfiguration.java | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.yml b/config.yml index 4667d8c5a..c84dfdb8e 100644 --- a/config.yml +++ b/config.yml @@ -39,6 +39,10 @@ super-pickaxe: snapshots: directory: +navigation-wand: + item: 345 + max-distance: 50 + wand-item: 271 shell-save-type: no-double-slash: false diff --git a/src/com/sk89q/worldedit/bukkit/BukkitConfiguration.java b/src/com/sk89q/worldedit/bukkit/BukkitConfiguration.java index 5b7bdac34..4a4fa3551 100644 --- a/src/com/sk89q/worldedit/bukkit/BukkitConfiguration.java +++ b/src/com/sk89q/worldedit/bukkit/BukkitConfiguration.java @@ -61,8 +61,9 @@ public class BukkitConfiguration extends LocalConfiguration { useInventoryOverride = config.getBoolean("use-inventory.allow-override", useInventoryOverride); maxBrushRadius = config.getInt("limits.max-brush-radius", maxBrushRadius); - navigationWand = config.getInt("navigation-wand-item", navigationWand); - navigationWandMaxDistance = config.getInt("navigation-wand-max-distance", navigationWandMaxDistance); + + navigationWand = config.getInt("navigation-wand.item", navigationWand); + navigationWandMaxDistance = config.getInt("navigation-wand.max-distance", navigationWandMaxDistance); disallowedBlocks = new HashSet(config.getIntList("limits.disallowed-blocks", null));