mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-23 00:42:57 +00:00
Merge remote-tracking branch 'origin/main' into experimental
Some checks are pending
Nightly Release / Build Client (push) Waiting to run
Nightly Release / Release Server (push) Blocked by required conditions
Nightly Release / Release Client (push) Blocked by required conditions
Nightly Release / Build Server (push) Waiting to run
Nightly Release / cleanup (push) Blocked by required conditions
Some checks are pending
Nightly Release / Build Client (push) Waiting to run
Nightly Release / Release Server (push) Blocked by required conditions
Nightly Release / Release Client (push) Blocked by required conditions
Nightly Release / Build Server (push) Waiting to run
Nightly Release / cleanup (push) Blocked by required conditions
This commit is contained in:
commit
c3c2ab5b54
|
|
@ -42,8 +42,20 @@ Icon* DirtTile::getTexture(int face, int data)
|
|||
if (data < 0 || data >= DIRT_NAMES_LENGTH)
|
||||
data = 0;
|
||||
|
||||
if (TEXTURE_NAMES[data] == L"dirt_podzol") {
|
||||
return (face == Facing::UP) ? podzolTop : podzolSide;
|
||||
if (TEXTURE_NAMES[data] == L"dirt_podzol")
|
||||
{
|
||||
switch(face)
|
||||
{
|
||||
case Facing::UP:
|
||||
return podzolTop;
|
||||
break;
|
||||
case Facing::DOWN:
|
||||
return Tile::dirt->getTexture(face);
|
||||
break;
|
||||
default:
|
||||
return podzolSide;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return icons[data];
|
||||
|
|
|
|||
Loading…
Reference in a new issue