1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-04 08:50:22 +02:00

[CSM] Implement minetest.get_csm_restrictions()

fixes #8068
This commit is contained in:
sfan5
2019-11-09 11:00:19 +01:00
parent 3f271564e0
commit 2c4cf508a9
5 changed files with 51 additions and 0 deletions

View File

@ -410,6 +410,11 @@ public:
return m_address_name;
}
inline u64 getCSMRestrictionFlags() const
{
return m_csm_restriction_flags;
}
inline bool checkCSMRestrictionFlag(CSMRestrictionFlags flag) const
{
return m_csm_restriction_flags & flag;