mirror of
https://github.com/Sokomine/locks.git
synced 2025-02-19 17:43:59 +01:00
added support for pipeworks sending a fake player instead of :pipeworks as player
This commit is contained in:
2
init.lua
2
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
|
||||
|
Reference in New Issue
Block a user