the parameter passed to the set_physics_override function has been changed

This commit is contained in:
Vitaliy Olkhin 2024-10-13 16:54:42 +05:00
parent d34a5ba847
commit e442ec80ea
2 changed files with 7 additions and 7 deletions

View File

@ -85,7 +85,7 @@ minetest.sleep_in_asciugamano = function( pos, node, clicker, itemstack, pointed
default.player_attached[pname] = false
clicker:setpos({x=pos.x,y=pos.y-0.5,z=pos.z})
clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
clicker:set_physics_override(1, 1, 1)
clicker:set_physics_override({1, 1, 1})
default.player_set_animation(clicker, "stand", 30)
minetest.chat_send_player( pname, 'That was enough sleep for now. You stand up again.');
return;
@ -186,7 +186,7 @@ minetest.sleep_in_asciugamano = function( pos, node, clicker, itemstack, pointed
default.player_attached[pname] = false
clicker:setpos({x=pos.x,y=pos.y-0.5,z=pos.z})
clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
clicker:set_physics_override(1, 1, 1)
clicker:set_physics_override({1, 1, 1})
default.player_set_animation(clicker, "stand", 30)
minetest.chat_send_player( pname, 'That was enough sitting around for now. You stand up again.');
return;
@ -197,7 +197,7 @@ minetest.sleep_in_asciugamano = function( pos, node, clicker, itemstack, pointed
clicker:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0})
clicker:setpos( p );
default.player_set_animation(clicker, new_animation, 30)
clicker:set_physics_override(0, 0, 0)
clicker:set_physics_override({0, 0, 0})
default.player_attached[pname] = true
if( allow_sleep==true) then

View File

@ -31,7 +31,7 @@ for i in ipairs(sdraia_list) do
default.player_attached[pname] = false
clicker:setpos({x=pos.x,y=pos.y-0.5,z=pos.z})
clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
clicker:set_physics_override(1, 1, 1)
clicker:set_physics_override({1, 1, 1})
default.player_set_animation(clicker, "stand", 30)
minetest.chat_send_player( pname, 'You stand up again.');
return;
@ -132,7 +132,7 @@ for i in ipairs(sdraia_list) do
default.player_attached[pname] = false
clicker:setpos({x=pos.x,y=pos.y-0.5,z=pos.z})
clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
clicker:set_physics_override(1, 1, 1)
clicker:set_physics_override({1, 1, 1})
default.player_set_animation(clicker, "stand", 30)
minetest.chat_send_player( pname, 'That was enough sitting around for now. You stand up again.');
return;
@ -140,10 +140,10 @@ for i in ipairs(sdraia_list) do
end
clicker:set_eye_offset({x=0,y=3,z=2}, {x=0,y=10,z=0})
clicker:set_eye_offset({x=0,y=3,z=2}, {x=0,y=3,z=0})
clicker:setpos( p );
default.player_set_animation(clicker, new_animation, 30)
clicker:set_physics_override()
clicker:set_physics_override({0,0,0})
default.player_attached[pname] = true
return;