568e8059f9
create more wrappers for built-in functions and use them instead.
9 lines
284 B
Lua
9 lines
284 B
Lua
local utils = load_file("util_misc")
|
|
|
|
blockgame.register_globalstep(function(delta_time)
|
|
for _, player in pairs(minetest.get_connected_players()) do
|
|
utils.handle_player(player, function (_, data)
|
|
data.properties.stepheight = data.control.sneak and 0.01 or 1.05
|
|
end)
|
|
end
|
|
end)
|