* Fix grass rendering and add grass blocks to the inventory.

This commit is contained in:
iProgramInCpp
2023-08-09 18:01:48 +03:00
parent 08314e8a0a
commit 939b2b3711
4 changed files with 43 additions and 7 deletions

View File

@@ -28,6 +28,15 @@ int GrassTile::getResource(int i, Random* random)
return Tile::dirt->getResource(i, random);
}
int GrassTile::getTexture(int dir)
{
if (dir == DIR_YPOS)
return TEXTURE_GRASS_TOP;
// no one will notice that I omitted the bottom one. Like grass_carried in MCPE
return TEXTURE_GRASS_SIDE;
}
int GrassTile::getTexture(LevelSource* level, int x, int y, int z, int dir)
{
if (dir == DIR_YPOS)