From 201cf5ffa350c07638ab70a03e2acca143610fea Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Fri, 26 Apr 2024 17:22:21 -0400 Subject: [PATCH] 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)` --- mods/doors/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 5dda9c3..ea9b353 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -1006,7 +1006,7 @@ function doors.register_fencegate(name, def) fence_closed.mesh = "doors_fencegate_closed.obj" fence_closed.gate = name .. "_open" - fence_closed.sound = "doors_fencegate_open" + fence_closed.sound = (is_54 and {"doors_fencegate_open"} or "doors_fencegate_open") fence_closed.collision_box = { type = "fixed", fixed = {-1/2, -1/2, -1/4, 1/2, 1/2 + fence_collision_extra, 1/4} @@ -1016,7 +1016,7 @@ function doors.register_fencegate(name, def) fence_open.mesh = "doors_fencegate_open.obj" fence_open.gate = name .. "_closed" - fence_open.sound = "doors_fencegate_close" + fence_open.sound = (is_54 and {"doors_fencegate_close"} or "doors_fencegate_close") fence_open.groups.not_in_creative_inventory = 1 fence_open.collision_box = { type = "fixed",