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:
parent
a8b9f6c956
commit
c90e1d404a
@ -157,6 +157,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
|
|||||||
0*math.pi/180,
|
0*math.pi/180,
|
||||||
0*math.pi/180,
|
0*math.pi/180,
|
||||||
}
|
}
|
||||||
|
p2r[0] = p2r[1]
|
||||||
|
|
||||||
local p2r_sofa = {
|
local p2r_sofa = {
|
||||||
0*math.pi/180,
|
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,
|
||||||
0*math.pi/180,
|
0*math.pi/180,
|
||||||
}
|
}
|
||||||
|
p2r_sofa[0] = p2r_sofa[1]
|
||||||
|
|
||||||
local p2r_facedir = {
|
local p2r_facedir = {
|
||||||
[0] = 180*math.pi/180,
|
[0] = 180*math.pi/180,
|
||||||
|
Loading…
Reference in New Issue
Block a user