mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Sneak: Improve and fix various things
Remove useless `got_teleported`. Fix jitter when walking against the sneak limits. Fix damage evading on sneak ladders.
This commit is contained in:
parent
bd921a7916
commit
f9fdb48dc8
6 changed files with 36 additions and 32 deletions
|
@ -68,14 +68,6 @@ int LuaLocalPlayer::l_get_name(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int LuaLocalPlayer::l_is_teleported(lua_State *L)
|
||||
{
|
||||
LocalPlayer *player = getobject(L, 1);
|
||||
|
||||
lua_pushboolean(L, player->got_teleported);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int LuaLocalPlayer::l_is_attached(lua_State *L)
|
||||
{
|
||||
LocalPlayer *player = getobject(L, 1);
|
||||
|
@ -386,7 +378,6 @@ const luaL_Reg LuaLocalPlayer::methods[] = {
|
|||
luamethod(LuaLocalPlayer, get_velocity),
|
||||
luamethod(LuaLocalPlayer, get_hp),
|
||||
luamethod(LuaLocalPlayer, get_name),
|
||||
luamethod(LuaLocalPlayer, is_teleported),
|
||||
luamethod(LuaLocalPlayer, is_attached),
|
||||
luamethod(LuaLocalPlayer, is_touching_ground),
|
||||
luamethod(LuaLocalPlayer, is_in_liquid),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue