From 2c4cf508a9b94a76ce2ca7c7317258471a41c51d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 9 Nov 2019 11:00:19 +0100 Subject: [CSM] Implement minetest.get_csm_restrictions() fixes #8068 --- src/client/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/client.h') 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; -- cgit v1.2.3