mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix flowing water being always opaque
This commit is contained in:
parent
e4dff41560
commit
9fc78cbece
3 changed files with 6 additions and 3 deletions
|
@ -245,11 +245,11 @@ struct ContentFeatures
|
|||
|
||||
void setTexture(u16 i, std::string name);
|
||||
|
||||
void setAllTextures(std::string name, u8 alpha=255)
|
||||
void setAllTextures(std::string name, u8 alpha_=255)
|
||||
{
|
||||
for(u16 i=0; i<6; i++)
|
||||
setTexture(i, name);
|
||||
alpha = alpha;
|
||||
alpha = alpha_;
|
||||
// Force inventory texture too
|
||||
setInventoryTexture(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue