From f66efda618bd9790b38f2b67ef8e64a0339717ef Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 10 Oct 2015 05:43:27 +0200 Subject: [PATCH] added support for pipeworks sending a fake player instead of :pipeworks as player --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index cec75e0..2a35b02 100644 --- a/init.lua +++ b/init.lua @@ -212,7 +212,7 @@ function locks:lock_allow_use( pos, player ) local meta = minetest.env:get_meta(pos); -- pipeworks sends a special username - if( name == ':pipeworks' ) then + if( name == ':pipeworks' or (player.is_fake_player and player.is_fake_player==":pipeworks")) then if( meta:get_int( 'allow_pipeworks' ) == 1 ) then return true; else