1
0
mirror of https://github.com/Sokomine/cottages.git synced 2024-12-28 03:30:35 +01:00

made player velocity check optional

This commit is contained in:
Sokomine 2015-08-02 16:38:35 +02:00
parent 235364c4a5
commit 9071235d40

View File

@ -335,6 +335,10 @@ minetest.register_node("cottages:washing", {
---------------------------------------------------------------------------------------
cottages.allow_sit = function( player )
-- no check possible
if( not( player.get_player_velocity )) then
return true;
end
local velo = player:get_player_velocity();
if( not( velo )) then
return false;