A bit more refactoring.
parent
909d6b3943
commit
66509a39f6
2
init.lua
2
init.lua
|
@ -174,7 +174,7 @@ end
|
|||
----------------------------------------------------------------------------------------------------
|
||||
function minetest_wadsprint.scan_player_controls(player)
|
||||
local control = player.obj:get_player_control()
|
||||
if (player.is_sprinting and control["up"]) then
|
||||
if player.is_sprinting and control["up"] then
|
||||
return
|
||||
end
|
||||
if control["left"] and control["right"] and not control["down"] then
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue