diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-05-01 23:01:15 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-05-01 23:01:15 +0200 |
commit | 575bc0c119f9aa61c5e24411ad46701c52e17a63 (patch) | |
tree | bb7ed72f9df910fbf07f8d587669ed2c819e63a0 /init.lua | |
parent | 80c492fd23b3ac930d0786bd55c4e7e475fb26ce (diff) | |
download | elevator-master.tar.gz elevator-master.tar.bz2 elevator-master.zip |
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -53,7 +53,7 @@ elevator.create_box = function(motorhash, pos, target, sender) obj:get_luaentity().vmult = (target.y < pos.y) and -1 or 1 -- FIX for "overshooting" local delta_y = math.abs(pos.y-target.y) - + local speed = elevator.SPEED if (delta_y<elevator.SLOW_DIST) then speed = elevator.SLOW_SPEED @@ -147,7 +147,6 @@ elevator.build_motor = function(hash) end elevator.unbuild = function(pos, add) - local need_saving = false local p = table.copy(pos) p.y = p.y - 1 -- Loop down through the network, set any elevators below this to the off position. |