mirror of
https://github.com/Sokomine/locks.git
synced 2024-08-19 20:54:14 +02:00
added support for pipeworks sending a fake player instead of :pipeworks as player
This commit is contained in:
parent
c63384a37a
commit
f66efda618
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user