syntactic sugar

This commit is contained in:
wsor4035 2023-12-03 15:32:47 -05:00
parent 4065c68807
commit 521d68c767

@ -67,7 +67,7 @@ minetest.register_globalstep(function(dtime)
for _, callback in pairs(controls.registered_on_hold) do
callback(player, key, os.clock() - controls.players[pname][key][2])
end
elseif key_status==false and controls.players[pname][key][1]==true then
elseif not key_status and controls.players[pname][key][1]==true then
for _, callback in pairs(controls.registered_on_release) do
callback(player, key, os.clock() - controls.players[pname][key][2])
end