summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-08-02 16:38:35 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-08-02 16:38:35 +0200
commit9071235d40156870b28a6c2aed6e35d3de3757af (patch)
treeb078ddab2fa1731d597e795c6d142416f34e58e1
parent235364c4a537ffb575a23345f5dc71db1e6ca2d4 (diff)
made player velocity check optional
-rw-r--r--nodes_furniture.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/nodes_furniture.lua b/nodes_furniture.lua
index 594c95b..0be9b6e 100644
--- a/nodes_furniture.lua
+++ b/nodes_furniture.lua
@@ -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;