mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 02:32:56 +00:00
fix(TU31): fix podzol down face texture (#71)
Some checks are pending
Sync branches with main / sync (push) Waiting to run
Some checks are pending
Sync branches with main / sync (push) Waiting to run
This commit is contained in:
parent
9b1e25ac01
commit
e176a9f5ec
|
|
@ -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