diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-01 10:59:02 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-01 10:59:02 +0100 |
commit | 3df23e23cd1ace3449660077665f5ebe3e13fdc2 (patch) | |
tree | 11035c36fb7129eca337a715b9908558eb25e1ce /builtin/client/cheats/inventory.lua | |
parent | 8b3eaf5b05379f995bf8d55532c107b190848a69 (diff) | |
download | dragonfireclient-3df23e23cd1ace3449660077665f5ebe3e13fdc2.tar.xz |
Small AutoTool Fix
Diffstat (limited to 'builtin/client/cheats/inventory.lua')
-rw-r--r-- | builtin/client/cheats/inventory.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/client/cheats/inventory.lua b/builtin/client/cheats/inventory.lua index bb32d7d8b..024bc5e98 100644 --- a/builtin/client/cheats/inventory.lua +++ b/builtin/client/cheats/inventory.lua @@ -86,7 +86,7 @@ local function find_best_tool(nodename) end function core.select_best_tool(nodename) - player:set_wield_index(find_best_tool(nodename)) + core.localplayer:set_wield_index(find_best_tool(nodename)) end local new_index, old_index, pointed_pos |