mirror of
https://github.com/minetest-mods/playeranim.git
synced 2025-07-16 15:20:37 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bb7d0c3057 |
4
init.lua
4
init.lua
@ -9,7 +9,7 @@ local BONE_POSITION, BONE_ROTATION = (function()
|
|||||||
return dofile(modpath .. "/model.lua")
|
return dofile(modpath .. "/model.lua")
|
||||||
end)()
|
end)()
|
||||||
|
|
||||||
local get_animation = player_api and player_api.get_animation or default.player_get_animation
|
local get_animation = minetest.global_exists("player_api") and player_api.get_animation or default.player_get_animation
|
||||||
if not get_animation then
|
if not get_animation then
|
||||||
error("player_api.get_animation or default.player_get_animation is not found")
|
error("player_api.get_animation or default.player_get_animation is not found")
|
||||||
end
|
end
|
||||||
@ -299,3 +299,5 @@ minetest.register_globalstep(function(dtime)
|
|||||||
animate_player(player, dtime)
|
animate_player(player, dtime)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
minetest.log("action", "[playeranim] loaded.")
|
||||||
|
Reference in New Issue
Block a user