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:
parent
235364c4a5
commit
9071235d40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user