mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove tile_images and special_materials obsolete code (#12455)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
This commit is contained in:
parent
35ad006234
commit
18fbc0394b
3 changed files with 2 additions and 23 deletions
|
@ -550,13 +550,6 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index)
|
|||
|
||||
// tiles = {}
|
||||
lua_getfield(L, index, "tiles");
|
||||
// If nil, try the deprecated name "tile_images" instead
|
||||
if(lua_isnil(L, -1)){
|
||||
lua_pop(L, 1);
|
||||
warn_if_field_exists(L, index, "tile_images",
|
||||
"Deprecated; new name is \"tiles\".");
|
||||
lua_getfield(L, index, "tile_images");
|
||||
}
|
||||
if(lua_istable(L, -1)){
|
||||
int table = lua_gettop(L);
|
||||
lua_pushnil(L);
|
||||
|
@ -613,13 +606,6 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index)
|
|||
|
||||
// special_tiles = {}
|
||||
lua_getfield(L, index, "special_tiles");
|
||||
// If nil, try the deprecated name "special_materials" instead
|
||||
if(lua_isnil(L, -1)){
|
||||
lua_pop(L, 1);
|
||||
warn_if_field_exists(L, index, "special_materials",
|
||||
"Deprecated; new name is \"special_tiles\".");
|
||||
lua_getfield(L, index, "special_materials");
|
||||
}
|
||||
if(lua_istable(L, -1)){
|
||||
int table = lua_gettop(L);
|
||||
lua_pushnil(L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue