From 9adad1127871b11ec541edf52de7914903359f43 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 4 Feb 2025 16:26:27 -0600 Subject: Possible fix for spurious "attempted to move doors with car in motion" faults --- drive_entity.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drive_entity.lua b/drive_entity.lua index ae72bca..5ac8fbb 100644 --- a/drive_entity.lua +++ b/drive_entity.lua @@ -444,6 +444,7 @@ function celevator.drives.entity.step(dtime) end apos = math.floor(apos+0.5) minetest.after(0.25,celevator.drives.entity.updatecopformspec,pos) + table.remove(entitydrives_running,i) elseif dremain < 0.2 and not inspection then vel = 0.2 elseif dremain < 2*maxvel and dremain < dmoved and not inspection then @@ -487,6 +488,7 @@ function celevator.drives.entity.step(dtime) celevator.car.spawncar(vector.round(vector.add(origin,vector.new(0,apos,0))),minetest.dir_to_yaw(minetest.fourdir_to_dir(carparam2)),carid) apos = math.floor(apos+0.5) minetest.after(0.25,celevator.drives.entity.updatecopformspec,pos) + table.remove(entitydrives_running,i) elseif dremain < 0.2 and not inspection then vel = 0.2 elseif dremain < 2*maxvel and dremain < dmoved and not inspection then -- cgit v1.2.3