]> git.lizzy.rs Git - minetest.git/blobdiff - src/nodedef.h
Fix potential problem with core.get_connected_players()
[minetest.git] / src / nodedef.h
index 60d91f8d99b689f921ae840f66b6cca66a8ae120..1a12aae939580f66e041a9748c24f85d046191c0 100644 (file)
@@ -668,6 +668,14 @@ class NodeDefManager {
         */
        void addNameIdMapping(content_t i, std::string name);
 
+       /*!
+        * Removes a content ID from all groups.
+        * Erases content IDs from vectors in \ref m_group_to_items and
+        * removes empty vectors.
+        * @param id Content ID
+        */
+       void eraseIdFromGroups(content_t id);
+
        /*!
         * Recalculates m_selection_box_int_union based on
         * m_selection_box_union.