Add minetest.get_csm_restrictions()

This commit is contained in:
luk3yx 2019-11-12 09:25:01 +13:00
parent 34e0ed35fa
commit aea9867ae9
1 changed files with 8 additions and 0 deletions

View File

@ -176,3 +176,11 @@ sscsm.restrictions = {
lookup_nodes_limit = math.floor(flags / 16) % 2 == 1,
read_playerinfo = math.floor(flags / 32) % 2 == 1,
}
sscsm.restrictions.lookup_nodes = sscsm.restrictions.lookup_nodes_limit
-- Add minetest.get_csm_restrictions() if it doesn't exist already.
if not minetest.get_csm_restrictions then
function minetest.get_csm_restrictions()
return table.copy(sscsm.restrictions)
end
end