mirror of
https://github.com/Sokomine/chesttools.git
synced 2025-10-25 11:35:25 +02:00
fixed severe bug that allowed all players to access the shared chests
This commit is contained in:
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user