From 2ec0000c852a901cf147dbb568ecdc0e5c0fb8b3 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 20 Mar 2025 14:25:35 -0500 Subject: Don't draw back faces of doors --- init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 50c434c..6207b6e 100644 --- a/init.lua +++ b/init.lua @@ -48,7 +48,10 @@ for _,mat in ipairs(materials) do for _,doortype in ipairs(doortypes) do doors.register("door"..doortype.name.."_"..mat.name,{ tiles = { - "terumet_lite_door"..doortype.name.."_"..mat.name..".png", + { + name = "terumet_lite_door"..doortype.name.."_"..mat.name..".png", + backface_culling = true, + } }, description = doortype.description.." "..mat.description.." Door", inventory_image = "terumet_lite_dinv"..doortype.name.."_"..mat.name..".png", @@ -61,7 +64,10 @@ for _,mat in ipairs(materials) do }) doors.register("door"..doortype.name.."_locked_"..mat.name,{ tiles = { - "terumet_lite_door"..doortype.name.."_"..mat.name..".png", + { + name = "terumet_lite_door"..doortype.name.."_"..mat.name..".png", + backface_culling = true, + } }, description = "Locked "..doortype.description.." "..mat.description.." Door", inventory_image = "terumet_lite_dinv"..doortype.name.."_"..mat.name..".png", -- cgit v1.2.3