mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
6ef7ad09bb
commit
36d35f2fe3
5 changed files with 46 additions and 33 deletions
|
@ -79,7 +79,7 @@ core.register_on_item_use(function(itemstack, pointed_thing)
|
|||
return false
|
||||
end
|
||||
|
||||
local pos = vector.add(core.localplayer:get_pos(), core.camera:get_offset())
|
||||
local pos = core.camera:get_pos()
|
||||
local pos2 = vector.add(pos, vector.multiply(core.camera:get_look_dir(), 100))
|
||||
|
||||
local rc = core.raycast(pos, pos2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue