mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
Fixed 'accessing undeclared global' warning if 'emote' mod is not installed
This commit is contained in:
parent
30c7525103
commit
2a360d970c
1 changed files with 1 additions and 2 deletions
3
init.lua
3
init.lua
|
@ -447,8 +447,7 @@ end
|
|||
function airutils.sit(player)
|
||||
--set_animation(frame_range, frame_speed, frame_blend, frame_loop)
|
||||
player:set_animation({x = 81, y = 160},30, 0, true)
|
||||
|
||||
if emote then emote.start(player:get_player_name(), "sit") end
|
||||
if minetest.get_modpath("emote") then emote.start(player:get_player_name(), "sit") end
|
||||
end
|
||||
|
||||
local function get_norm_angle(angle)
|
||||
|
|
Loading…
Add table
Reference in a new issue