mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Revert empty form name deprecation warnings
This commit is contained in:
@@ -426,18 +426,8 @@ int ModApiServer::l_show_formspec(lua_State *L)
|
||||
NO_MAP_LOCK_REQUIRED;
|
||||
const char *playername = luaL_checkstring(L, 1);
|
||||
const char *formname = luaL_checkstring(L, 2);
|
||||
if (*formname == '\0') {
|
||||
log_deprecated(L, "Deprecated call to `minetest.show_formspec`:"
|
||||
"`formname` must not be empty");
|
||||
}
|
||||
const char *formspec = luaL_checkstring(L, 3);
|
||||
|
||||
if(getServer(L)->showFormspec(playername,formspec,formname))
|
||||
{
|
||||
lua_pushboolean(L, true);
|
||||
}else{
|
||||
lua_pushboolean(L, false);
|
||||
}
|
||||
lua_pushboolean(L, getServer(L)->showFormspec(playername,formspec,formname));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user