fixed some issues with sunbeds

This commit is contained in:
Vitaliy Olkhin 2024-10-13 16:11:54 +05:00
parent a656298d7c
commit d34a5ba847

View File

@ -120,7 +120,6 @@ for i in ipairs(sdraia_list) do
end
end
minetest.chat_send_player( pname, 'Состояние ' .. new_animation);
if( default.player_attached[pname] and animation.animation=="sit") then
-- just changing the animation...
if( allow_sleep==true ) then
@ -146,7 +145,7 @@ for i in ipairs(sdraia_list) do
default.player_set_animation(clicker, new_animation, 30)
clicker:set_physics_override()
default.player_attached[pname] = true
return;
end