From c90e1d404a611fc1eb38b6d4d204f22d0aee45e1 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:19:09 -0400 Subject: [PATCH] catch malformed seating, since lua tables are 1 indexed --- homedecor_seating/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homedecor_seating/init.lua b/homedecor_seating/init.lua index e64286b6..717a4bab 100644 --- a/homedecor_seating/init.lua +++ b/homedecor_seating/init.lua @@ -157,6 +157,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats) 0*math.pi/180, 0*math.pi/180, } + p2r[0] = p2r[1] local p2r_sofa = { 0*math.pi/180, @@ -168,6 +169,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats) 0*math.pi/180, 0*math.pi/180, } + p2r_sofa[0] = p2r_sofa[1] local p2r_facedir = { [0] = 180*math.pi/180,