diff options
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 |