mods doors - fix error on sounds that xpected table on new engines
* fix error `bad argument # 5 to 'register_item_raw' (table expected, got string)` * backported codeberg commit 201cf5f for newer engines mostly 5.3
This commit is contained in:
parent
e50d742a8a
commit
8a7aed8dc1
@ -757,7 +757,7 @@ function doors.register_fencegate(name, def)
|
|||||||
local fence_closed = table.copy(fence)
|
local fence_closed = table.copy(fence)
|
||||||
fence_closed.mesh = "doors_fencegate_closed.obj"
|
fence_closed.mesh = "doors_fencegate_closed.obj"
|
||||||
fence_closed.gate = name .. "_open"
|
fence_closed.gate = name .. "_open"
|
||||||
fence_closed.sound = "doors_fencegate_open"
|
fence_closed.sound = (is_54 and {"doors_fencegate_close"} or "doors_fencegate_close")
|
||||||
fence_closed.collision_box = {
|
fence_closed.collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-1/2, -1/2, -1/4, 1/2, 1/2, 1/4},
|
fixed = {-1/2, -1/2, -1/4, 1/2, 1/2, 1/4},
|
||||||
@ -766,7 +766,7 @@ function doors.register_fencegate(name, def)
|
|||||||
local fence_open = table.copy(fence)
|
local fence_open = table.copy(fence)
|
||||||
fence_open.mesh = "doors_fencegate_open.obj"
|
fence_open.mesh = "doors_fencegate_open.obj"
|
||||||
fence_open.gate = name .. "_closed"
|
fence_open.gate = name .. "_closed"
|
||||||
fence_open.sound = "doors_fencegate_close"
|
fence_open.sound = (is_54 and {"doors_fencegate_open"} or "doors_fencegate_open")
|
||||||
fence_open.groups.not_in_creative_inventory = 1
|
fence_open.groups.not_in_creative_inventory = 1
|
||||||
fence_open.collision_box = {
|
fence_open.collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user