mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Deprecate get_player_velocity and add_player_velocity (#10173)
This commit is contained in:
parent
41a6136f77
commit
3250b37e32
5 changed files with 58 additions and 67 deletions
|
@ -170,10 +170,11 @@ void ModApiBase::markAliasDeprecated(luaL_Reg *reg)
|
|||
m_deprecated_wrappers.emplace(
|
||||
std::pair<std::string, luaL_Reg>(reg->name, original_reg));
|
||||
reg->func = l_deprecated_function;
|
||||
} else {
|
||||
last_func = reg->func;
|
||||
last_name = reg->name;
|
||||
}
|
||||
|
||||
last_func = reg->func;
|
||||
last_name = reg->name;
|
||||
++reg;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue