made player velocity check optional

This commit is contained in:
Sokomine 2015-08-02 16:38:35 +02:00
parent 235364c4a5
commit 9071235d40
1 changed files with 4 additions and 0 deletions

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;