]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_item.h
on_death: Fix callback number of pushed arguments (Fixes #6451)
[minetest.git] / src / script / cpp_api / s_item.h
index 7350a71c5e3d19d6e0d901d447e40d4b17dc193d..561f3a55386102d34519dbffa47624b26b98f5d0 100644 (file)
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef S_ITEM_H_
-#define S_ITEM_H_
+#pragma once
 
 #include "cpp_api/s_base.h"
 #include "irr_v3d.h"
@@ -52,11 +51,9 @@ class ScriptApiItem
 protected:
        friend class LuaItemStack;
        friend class ModApiItemMod;
+       friend class LuaRaycast;
 
        bool getItemCallback(const char *name, const char *callbackname);
        void pushPointedThing(const PointedThing& pointed);
 
 };
-
-
-#endif /* S_ITEM_H_ */