summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-20 12:43:34 -0500
committercheapie <no-email-for-you@example.com>2024-04-20 12:43:34 -0500
commited7e12a7bb03b2424a12d43857085cade10eae8b (patch)
tree3ccf18d2c8184a7e6a6aa6195ebef70aeb7c0db5
parentcca9176c15fe3316495742e52d5f01f1c1b08d4e (diff)
downloadcelevator-ed7e12a7bb03b2424a12d43857085cade10eae8b.tar
celevator-ed7e12a7bb03b2424a12d43857085cade10eae8b.tar.gz
celevator-ed7e12a7bb03b2424a12d43857085cade10eae8b.tar.bz2
celevator-ed7e12a7bb03b2424a12d43857085cade10eae8b.tar.xz
celevator-ed7e12a7bb03b2424a12d43857085cade10eae8b.zip
Fix car door disappearing on arrival
-rw-r--r--drive_entity.lua2
1 files changed, 1 insertions, 1 deletions
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