diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/MinerMinionType.kt b/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/MinerMinionType.kt index 848fa03..b3b324b 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/MinerMinionType.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/MinerMinionType.kt @@ -55,7 +55,7 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource val efficiency = 1.0 - if (tool > 0.9) 0.9 else tool minionImpl.setNextAction((getLong("speed", minion.getLevel()) * efficiency).roundToInt()) - generatorMode = getConfig().getString("break") == "generator" + generatorMode = getConfig().getString("break", "generator").equals("generator", true) whitelist.clear() getConfig().getStringList("whitelist").fastFor { whitelist.add(Material.matchMaterial(it.uppercase(Locale.ENGLISH)) ?: return@fastFor)