aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/cheats/combat.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-21 18:51:57 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-21 18:51:57 +0200
commitea88dde4be225d19c12bea4a581aa21f17237070 (patch)
tree3787863e03a7222b1c3fde0c37c2d85ae8821326 /builtin/client/cheats/combat.lua
parentf1ff05bf5932a7825509dbe896e60183a96a6d36 (diff)
downloaddragonfireclient-ea88dde4be225d19c12bea4a581aa21f17237070.tar.xz
Added Strip, AutoRefill, indexing for InventoryActions and Wield Index starts at 1 now
Diffstat (limited to 'builtin/client/cheats/combat.lua')
-rw-r--r--builtin/client/cheats/combat.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/client/cheats/combat.lua b/builtin/client/cheats/combat.lua
index b497c6c1b..1f9ba9a91 100644
--- a/builtin/client/cheats/combat.lua
+++ b/builtin/client/cheats/combat.lua
@@ -2,7 +2,7 @@ local placed_crystal
local switched_to_totem = 0
local used_sneak = true
local totem_move_action = InventoryAction("move")
-totem_move_action:to("current_player", "main", 8)
+totem_move_action:to("current_player", "main", 9)
core.register_globalstep(function(dtime)
local player = core.localplayer
@@ -48,9 +48,9 @@ core.register_globalstep(function(dtime)
if totem_stack and totem_stack:get_name() ~= "mobs_mc:totem" then
local totem_index = core.find_item("mobs_mc:totem")
if totem_index then
- totem_move_action:from("current_player", "main", totem_index - 1)
+ totem_move_action:from("current_player", "main", totem_index)
totem_move_action:apply()
- player:set_wield_index(8)
+ player:set_wield_index(9)
end
end
end