1
0
Fork 0

Simplify code

This commit is contained in:
NO11 2021-07-11 11:11:22 +00:00
parent b7e6db537b
commit f46c4ebad7
1 changed files with 6 additions and 8 deletions

View File

@ -232,14 +232,12 @@ minetest.register_globalstep(function(dtime)
local moving = {} local moving = {}
local any local any
for id, y in pairs(huds.moving) do for id, y in pairs(huds.moving) do
y = y - 1
if not control.jump then
y = y - 1 if control.jump then
else y = y - 2
if not control.aux1 then if control.aux1 then
y = y - 3 y = y - 5
else
y = y - 8
end end
end end