Skip to content

Commit

Permalink
- oops fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunnky committed Oct 7, 2024
1 parent be8c8e4 commit 6e693bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@
</dependency>

<dependency>
<groupId>io.github.baked-libs</groupId>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>1.2.0</version>
<version>f8ff25187d</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e693bc

Please sign in to comment.