From 6ea5479b26c4f1147304e02434c65a3ef67eacc3 Mon Sep 17 00:00:00 2001 From: TomTom <93038247+AverageGithub@users.noreply.github.com> Date: Wed, 29 May 2024 16:29:01 +0200 Subject: [PATCH] Fix --- .../axminions/minions/miniontype/MinerMinionType.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)