X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=mods%2Fmob%2Fapi%2Fhead_code.lua;h=a06936dc7f01f2f9c826ccce827976dbae5828bc;hb=c09067c77ece357b018dd03963e0a1e19f9c4686;hp=f9bed64e0b196fdb46cf322d4330d9bd7ff8b3ff;hpb=34a4e62ecd1653269f0ca37426300705c54f154c;p=Crafter.git diff --git a/mods/mob/api/head_code.lua b/mods/mob/api/head_code.lua index f9bed64..a06936d 100644 --- a/mods/mob/api/head_code.lua +++ b/mods/mob/api/head_code.lua @@ -62,7 +62,7 @@ mobs.create_head_functions = function(def,mob_register) --print(self.head_rotation.y) --if passed a direction to look local pos = self.object:get_pos() - local body_yaw = self.object:get_yaw()-math.pi/2 + local body_yaw = self.object:get_yaw()-math.pi/2+self.rotational_correction local dir = vector.multiply(minetest.yaw_to_dir(body_yaw),self.head_directional_offset)