1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

catch malformed seating, since lua tables are 1 indexed

This commit is contained in:
wsor4035 2024-10-27 12:19:09 -04:00
parent a8b9f6c956
commit c90e1d404a

View File

@ -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,