aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/cheats/combat.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-29 19:08:39 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-29 19:08:39 +0100
commit4695222bc39578643e2ae64fb8725f45a340a008 (patch)
treede74c98ba1f948ab6e9a1ec3327d5f440074f5c9 /builtin/client/cheats/combat.lua
parent5bead7daaf1782ecb142a57ac57bd8ba405ba150 (diff)
downloaddragonfireclient-4695222bc39578643e2ae64fb8725f45a340a008.tar.xz
Fix and Improve AutoTool
Diffstat (limited to 'builtin/client/cheats/combat.lua')
-rw-r--r--builtin/client/cheats/combat.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/client/cheats/combat.lua b/builtin/client/cheats/combat.lua
index 4904d8c52..4b753eabd 100644
--- a/builtin/client/cheats/combat.lua
+++ b/builtin/client/cheats/combat.lua
@@ -12,7 +12,7 @@ core.register_globalstep(function(dtime)
local control = player:get_control()
local pointed = core.get_pointed_thing()
local item = player:get_wielded_item():get_name()
- if core.settings:get_bool("killaura") or core.settings:get_bool("forcefield") and control.LMB then
+ if core.settings:get_bool("killaura") or core.settings:get_bool("forcefield") and control.dig then
local friendlist = core.settings:get("friendlist"):split(",")
for _, obj in ipairs(core.get_objects_inside_radius(player:get_pos(), 5)) do
local do_attack = true
@@ -45,7 +45,7 @@ core.register_globalstep(function(dtime)
else
switched_to_totem = switched_to_totem
end
- elseif control.RMB and item == "mcl_end:crystal" then
+ elseif control.place and item == "mcl_end:crystal" then
placed_crystal = true
elseif control.sneak then
if pointed and pointed.type == "node" and not used_sneak then