cap boost to 4

This commit is contained in:
kepler155c@gmail.com
2019-04-20 14:22:49 -04:00
parent 7d8edefe66
commit 93b08eb4f3

View File

@@ -98,7 +98,7 @@ local function run()
os.sleep(0.1)
elseif meta.motionY < -0.5 then -- falling fast
modules.launch(0, 270, -meta.motionY + 1)
modules.launch(0, 270, math.min(-meta.motionY + 1, 4))
Sound.play('entity.bat.takeoff')
display(meta)
os.sleep(0)