summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2025-02-04 16:26:27 -0600
committercheapie <no-email-for-you@example.com>2025-02-04 16:26:27 -0600
commit9adad1127871b11ec541edf52de7914903359f43 (patch)
treeeab3a349de715d72b17f97693303c7894dc70514
parente51432957b21d32ca446d6442e730ba5ab012bb3 (diff)
downloadcelevator-9adad1127871b11ec541edf52de7914903359f43.tar
celevator-9adad1127871b11ec541edf52de7914903359f43.tar.gz
celevator-9adad1127871b11ec541edf52de7914903359f43.tar.bz2
celevator-9adad1127871b11ec541edf52de7914903359f43.tar.xz
celevator-9adad1127871b11ec541edf52de7914903359f43.zip
Possible fix for spurious "attempted to move doors with car in motion" faultsHEADmain
-rw-r--r--drive_entity.lua2
1 files changed, 2 insertions, 0 deletions
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