mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 04:11:24 +00:00
Use a local for the globalstep function
This commit is contained in:
parent
f665382017
commit
268a8844b6
1 changed files with 4 additions and 1 deletions
|
@ -211,8 +211,11 @@ function player_api.globalstep()
|
|||
end
|
||||
|
||||
-- Mods can modify the globalstep by overriding player_api.globalstep
|
||||
|
||||
-- local for speed
|
||||
local player_api_globalstep = player_api.globalstep
|
||||
minetest.register_globalstep(function(...)
|
||||
player_api.globalstep(players, ...)
|
||||
player_api_globalstep(players, ...)
|
||||
end)
|
||||
|
||||
for _, api_function in pairs({"get_animation", "set_animation", "set_model", "set_textures"}) do
|
||||
|
|
Loading…
Add table
Reference in a new issue