Skip to content

Commit 1ae4ab7

Browse files
authored
Merge pull request Civcraft#3 from Maxopoly/hehexd
Disable mining fatigue
2 parents 5ff5f4e + 7373fda commit 1ae4ab7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/untamedears/humbug/Humbug.java

+10
Original file line numberDiff line numberDiff line change
@@ -2606,6 +2606,16 @@ public void onChangingSpawners(PlayerInteractEvent event)
26062606
}
26072607
}
26082608

2609+
@BahHumbug(opt="disable_mining_fatigue", def="true")
2610+
public void onInteractMiningSomething(PlayerInteractEvent event)
2611+
{
2612+
if (!config_.get("disable_mining_fatigue").getBool()) {
2613+
return;
2614+
}
2615+
Player p = event.getPlayer();
2616+
p.removePotionEffect(PotionEffectType.SLOW_DIGGING);
2617+
}
2618+
26092619
// ================================================
26102620
// Enforce good sign data length
26112621

0 commit comments

Comments
 (0)