Bug fix: now fences and glass planes do not turn grass to dirt (#80)

This commit is contained in:
NSDeathman 2026-05-17 02:41:02 +04:00 committed by GitHub
parent ce9ee06d41
commit 3bc06a62a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ void GrassTile::tick(Level *level, int x, int y, int z, Random *random)
}
Material* above = level->getMaterial(x, y + 1, z);
if (above->isSolid() || above->isLiquid()) level->setTileAndUpdate(x, y, z, Tile::dirt_Id);
if (above->isLiquid()) level->setTileAndUpdate(x, y, z, Tile::dirt_Id);
}
int GrassTile::getResource(int data, Random *random, int playerBonusLevel)