1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00: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;