summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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