aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index d2440369a..089955d2f 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -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)