forked from mtcontrib/chesttools
fixed severe bug that allowed all players to access the shared chests
This commit is contained in:
parent
119ad05e73
commit
6c9aa5d494
3
init.lua
3
init.lua
@ -1,3 +1,4 @@
|
|||||||
|
-- 05.10.14 Fixed bug in protection/access
|
||||||
|
|
||||||
chesttools = {}
|
chesttools = {}
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ chesttools.may_use = function( pos, player )
|
|||||||
and minetest.is_protected(pos, ' _DUMMY_PLAYER_ ')) then
|
and minetest.is_protected(pos, ' _DUMMY_PLAYER_ ')) then
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
return true;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user