]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_base.h
Merge pull request #8776 from osjc/FixGetNode
[minetest.git] / src / script / cpp_api / s_base.h
index 6f61b6b843473c47b69e29e9d1d19cc1846c90cd..697e5f5563e5f7b06ef7575f788da6df2eb8ba9b 100644 (file)
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <thread>
 #include <mutex>
 #include <unordered_map>
+#include "common/helper.h"
 #include "util/basic_macros.h"
 
 extern "C" {
@@ -74,7 +75,7 @@ class GUIEngine;
 class ServerActiveObject;
 struct PlayerHPChangeReason;
 
-class ScriptApiBase {
+class ScriptApiBase : protected LuaHelper {
 public:
        ScriptApiBase(ScriptingType type);
        // fake constructor to allow script API classes (e.g ScriptApiEnv) to virtually inherit from this one.