From 580816fb3a492d1ceca4e6cd2a1c0dc796e5c9f9 Mon Sep 17 00:00:00 2001 From: Niklp Date: Sat, 14 Dec 2024 23:37:28 +0100 Subject: [PATCH] Restore compatibility w/ 5.8.0 and older clients (#4) --- init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8176ff7..be38976 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,6 @@ local get_connected_players = minetest.get_connected_players local lastdir = {} +local basepos = vector.new(0, 6.35, 0) minetest.register_globalstep(function() for _, player in pairs(get_connected_players()) do @@ -9,9 +10,13 @@ minetest.register_globalstep(function() if (lastdir[pname] or 0) ~= ldeg then lastdir[pname] = ldeg player:set_bone_override("Head", { + position = { + vec = basepos, + absolute = true + }, rotation = { vec = {x = ldeg, y = 0, z = 0}, - interpolation = 0.14, + interpolation = 0.09, } }) end