made player velocity check optional
This commit is contained in:
parent
235364c4a5
commit
9071235d40
|
@ -335,6 +335,10 @@ minetest.register_node("cottages:washing", {
|
||||||
---------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
cottages.allow_sit = function( player )
|
cottages.allow_sit = function( player )
|
||||||
|
-- no check possible
|
||||||
|
if( not( player.get_player_velocity )) then
|
||||||
|
return true;
|
||||||
|
end
|
||||||
local velo = player:get_player_velocity();
|
local velo = player:get_player_velocity();
|
||||||
if( not( velo )) then
|
if( not( velo )) then
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue