aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_localplayer.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-12 16:08:12 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-12 16:08:12 +0100
commit659f470565efff7a8789d1cc8b1cd18ad7d15ad0 (patch)
tree591a6cb0e96c2b70917c031b670a8103a776a15b /src/script/lua_api/l_localplayer.cpp
parent76aa6103e39533d70f3b46e6df902dc6b4dd4104 (diff)
downloadminetest-659f470565efff7a8789d1cc8b1cd18ad7d15ad0.tar.xz
Add correct gravity calculation
Diffstat (limited to 'src/script/lua_api/l_localplayer.cpp')
-rw-r--r--src/script/lua_api/l_localplayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp
index bdbe98cb0..703b13d65 100644
--- a/src/script/lua_api/l_localplayer.cpp
+++ b/src/script/lua_api/l_localplayer.cpp
@@ -176,6 +176,9 @@ int LuaLocalPlayer::l_get_physics_override(lua_State *L)
lua_pushboolean(L, player->physics_override_new_move);
lua_setfield(L, -2, "new_move");
+ lua_pushboolean(L, player->physics_override_new_gravity);
+ lua_setfield(L, -2, "new_gravity");
+
return 1;
}