From 18342e44c8446522c4f8e09e65cc25e2e3b8cae4 Mon Sep 17 00:00:00 2001 From: JoseDouglas26 Date: Tue, 30 Apr 2024 10:45:00 +0000 Subject: [PATCH] Change lectern wdir check to allow placement on node sides (#4263) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4263 Reviewed-by: Mikita Wiśniewski Co-authored-by: JoseDouglas26 Co-committed-by: JoseDouglas26 --- mods/ITEMS/mcl_lectern/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_lectern/init.lua b/mods/ITEMS/mcl_lectern/init.lua index 98366b7b8..da1db2990 100644 --- a/mods/ITEMS/mcl_lectern/init.lua +++ b/mods/ITEMS/mcl_lectern/init.lua @@ -76,8 +76,7 @@ local lectern_def = { if wdir == 0 then return itemstack -- IE., no Hanging Lecterns for you! - end - if wdir == 1 then + else -- (only make standing nodes...) -- Determine the rotation based on player's yaw local yaw = pi * 2 - placer:get_look_horizontal()