diff --git a/pom.xml b/pom.xml index a15005c0..62a0e7f2 100644 --- a/pom.xml +++ b/pom.xml @@ -231,9 +231,9 @@ - io.github.baked-libs + com.github.baked-libs.dough dough-api - 1.2.0 + f8ff25187d compile diff --git a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/SensibleToolboxPlugin.java b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/SensibleToolboxPlugin.java index 2a8b4b22..da569e10 100644 --- a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/SensibleToolboxPlugin.java +++ b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/SensibleToolboxPlugin.java @@ -206,16 +206,6 @@ public void onEnable() { configCache = new ConfigCache(this); configCache.processConfig(); - MiscUtil.setColoredConsole(getConfig().getBoolean("colored_console")); - - LogUtils.setLogLevel(getConfig().getString("log_level", "INFO")); - - Debugger.getInstance().setPrefix("[STB] "); - Debugger.getInstance().setLevel(getConfig().getInt("debug_level")); - - if (getConfig().getInt("debug_level") > 0) { - Debugger.getInstance().setTarget(getServer().getConsoleSender()); - } // try to hook other plugins decentHolograms = getServer().getPluginManager().isPluginEnabled("DecentHolograms"); @@ -271,6 +261,16 @@ public void onEnable() { updater.start(); } + MiscUtil.setColoredConsole(getConfig().getBoolean("colored_console")); + + LogUtils.setLogLevel(getConfig().getString("log_level", "INFO")); + + Debugger.getInstance().setPrefix("[STB] "); + Debugger.getInstance().setLevel(getConfig().getInt("debug_level")); + + if (getConfig().getInt("debug_level") > 0) { + Debugger.getInstance().setTarget(getServer().getConsoleSender()); + } enabled = true; } diff --git a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/items/multibuilder/MultiBuilder.java b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/items/multibuilder/MultiBuilder.java index 0416e15a..810761d2 100644 --- a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/items/multibuilder/MultiBuilder.java +++ b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/items/multibuilder/MultiBuilder.java @@ -310,7 +310,7 @@ protected boolean canReplace(Player p, Block b) { } else if (SensibleToolboxPlugin.getInstance().isSlimefunEnabled() && BlockStorage.hasBlockInfo(b)) { return false; // Unbreakable Blocks - } else if (b.getType().getHardness() <= 0) { + } else if (b.getType().getHardness() == -1) { return false; } else { // Block is replaceable, return permission to break