aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-14 21:16:45 +0200
committerGitHub <noreply@github.com>2020-05-14 21:16:45 +0200
commit36d35f2fe31a429c1510df680801940472416d45 (patch)
treef36be46515b7631ccbc581451c134e8d9c9a9265 /clientmods/preview
parent6ef7ad09bbed9176d0d15f53b5cb14ef6e18a3b2 (diff)
downloadminetest-36d35f2fe31a429c1510df680801940472416d45.tar.gz
minetest-36d35f2fe31a429c1510df680801940472416d45.tar.bz2
minetest-36d35f2fe31a429c1510df680801940472416d45.zip
CSM: Bugfixes to camera:get_pos() and camera:get_fov()
closes #9857
Diffstat (limited to 'clientmods/preview')
-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)