Skip to content

Commit

Permalink
catch malformed seating, since lua tables are 1 indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Oct 27, 2024
1 parent a8b9f6c commit c90e1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homedecor_seating/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit c90e1d4

Please sign in to comment.