From 686b575f81f36471e6ccb6b5e845b0b9300409e7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 20 Feb 2019 20:59:01 +0100 Subject: [PATCH] Beds: Fix player model offset when laying down --- mods/ITEMS/mcl_beds/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 67382dfbe..6824cabe8 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -137,7 +137,7 @@ local function lay_down(player, pos, bed_pos, state, skip) else local yaw, param2 = get_look_yaw(bed_pos) local dir = minetest.facedir_to_dir(param2) - local p = {x = bed_pos.x + dir.x / 4, y = bed_pos.y, z = bed_pos.z + dir.z / 4} + local p = {x = bed_pos.x - dir.x/2, y = bed_pos.y, z = bed_pos.z - dir.z/2} local n1 = minetest.get_node({x=bed_pos.x, y=bed_pos.y+1, z=bed_pos.z}) local n2 = minetest.get_node({x=bed_pos.x, y=bed_pos.y+2, z=bed_pos.z}) local def1 = minetest.registered_nodes[n1.name]