summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorMax Luchterhand <52720531+maxluchterhand1@users.noreply.github.com>2020-03-21 17:00:26 +0100
committerGitHub <noreply@github.com>2020-03-21 17:00:26 +0100
commit4f60eaabcae03c77958585b4b4e843f479955aae (patch)
treea374f6b3c2a77e458b49b6e0cbc270cf851a9a77 /src/Bindings/LuaState.cpp
parentDon't call player movement hook if nothing changed (#4517) (diff)
downloadcuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar.gz
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar.bz2
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar.lz
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar.xz
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.tar.zst
cuberite-4f60eaabcae03c77958585b4b4e843f479955aae.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index c1e71bd5c..ad1021001 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -949,6 +949,16 @@ void cLuaState::Push(bool a_Value)
+void cLuaState::Push(const cEntity * a_Entity)
+{
+ // Once we can make Lua understand constness, this function shall receive a corresponding function body
+ Push(const_cast<cEntity * >(a_Entity));
+}
+
+
+
+
+
void cLuaState::Push(cEntity * a_Entity)
{
ASSERT(IsValid());