mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Drop never documented 'alpha' property from nodedef
Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
This commit is contained in:
parent
e6e5910cb4
commit
edd8c3c664
5 changed files with 8 additions and 42 deletions
|
@ -618,7 +618,10 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index)
|
|||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
f.alpha = getintfield_default(L, index, "alpha", 255);
|
||||
warn_if_field_exists(L, index, "alpha",
|
||||
"Obsolete, only limited compatibility provided");
|
||||
if (getintfield_default(L, index, "alpha", 255) != 255)
|
||||
f.alpha = 0;
|
||||
|
||||
bool usealpha = getboolfield_default(L, index,
|
||||
"use_texture_alpha", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue