Merge pull request #11 from debagos/main

Fixing "accessing undeclared global" warning if "emote" mod is not installed
This commit is contained in:
Alexsandro Percy 2024-01-13 21:58:35 -03:00 committed by GitHub
commit ff90b37408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)