summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-11-09 11:00:19 +0100
committersfan5 <sfan5@live.de>2019-11-11 14:06:48 +0100
commit2c4cf508a9b94a76ce2ca7c7317258471a41c51d (patch)
treedb024e8374e7e74809410b9b998d38042b187811 /src/client
parent3f271564e08716cfeb4a966f4291524b0fac05d3 (diff)
downloadminetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.tar.gz
minetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.tar.bz2
minetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.zip
[CSM] Implement minetest.get_csm_restrictions()
fixes #8068
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/client.h b/src/client/client.h
index 5144af69f..0e0765cae 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -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;