mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
Merge pull request #11 from debagos/main
Fixing "accessing undeclared global" warning if "emote" mod is not installed
This commit is contained in:
commit
ff90b37408
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