From ed7e12a7bb03b2424a12d43857085cade10eae8b Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 20 Apr 2024 12:43:34 -0500 Subject: Fix car door disappearing on arrival --- drive_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive_entity.lua b/drive_entity.lua index 8f5dbed..f7f8b4b 100644 --- a/drive_entity.lua +++ b/drive_entity.lua @@ -274,7 +274,7 @@ function celevator.drives.entity.entitiestonodes(refs,carid) elseif not ok then eref:remove() else - ok = false + if not pos then ok = false end end if pos then for _,i in ipairs(minetest.get_objects_inside_radius(pos,1)) do -- cgit v1.2.3