added support for pipeworks sending a fake player instead of :pipeworks as player

This commit is contained in:
Sokomine 2015-10-10 05:43:27 +02:00
parent c63384a37a
commit f66efda618

View File

@ -212,7 +212,7 @@ function locks:lock_allow_use( pos, player )
local meta = minetest.env:get_meta(pos); local meta = minetest.env:get_meta(pos);
-- pipeworks sends a special username -- 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 if( meta:get_int( 'allow_pipeworks' ) == 1 ) then
return true; return true;
else else