aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/client/cheats/inventory.lua2
-rw-r--r--builtin/client/util.lua2
2 files changed, 2 insertions, 2 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
diff --git a/builtin/client/util.lua b/builtin/client/util.lua
index 42e383c5c..30f983af3 100644
--- a/builtin/client/util.lua
+++ b/builtin/client/util.lua
@@ -41,7 +41,7 @@ end
function core.get_pointed_thing()
local pos = core.camera:get_pos()
- local pos2 = vector.add(pos, vector.multiply(core.camera:get_look_dir(), 5))
+ local pos2 = vector.add(pos, vector.multiply(core.camera:get_look_dir(), 7))
local player = core.localplayer
if not player then return end
local item = player:get_wielded_item()