Fixed 'accessing undeclared global' warning if 'emote' mod is not installed

This commit is contained in:
debagos 2024-01-14 00:10:34 +01:00
parent 30c7525103
commit 2a360d970c
1 changed files with 1 additions and 2 deletions

View File

@ -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)