Change lectern wdir check to allow placement on node sides (#4263)
Reviewed-on: MineClone2/MineClone2#4263 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: JoseDouglas26 <josedouglas20002014@gmail.com> Co-committed-by: JoseDouglas26 <josedouglas20002014@gmail.com>
This commit is contained in:
parent
2430953a81
commit
18342e44c8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue