mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Remove get_noiseparams function. read_noiseparams should be used from now on
This commit is contained in:
@@ -975,18 +975,6 @@ void luaentity_get(lua_State *L, u16 id)
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
NoiseParams *get_noiseparams(lua_State *L, int index)
|
||||
{
|
||||
NoiseParams *np = new NoiseParams;
|
||||
|
||||
if (!read_noiseparams(L, index, np)) {
|
||||
delete np;
|
||||
np = NULL;
|
||||
}
|
||||
|
||||
return np;
|
||||
}
|
||||
|
||||
bool read_noiseparams(lua_State *L, int index, NoiseParams *np)
|
||||
{
|
||||
if (index < 0)
|
||||
|
Reference in New Issue
Block a user