From 3bc06a62a2475493e5b0e3af3f5640a8ef05be46 Mon Sep 17 00:00:00 2001 From: NSDeathman <104826306+NSDeathman@users.noreply.github.com> Date: Sun, 17 May 2026 02:41:02 +0400 Subject: [PATCH] Bug fix: now fences and glass planes do not turn grass to dirt (#80) --- Minecraft.World/GrassTile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.World/GrassTile.cpp b/Minecraft.World/GrassTile.cpp index c42ea940..c822fcfd 100644 --- a/Minecraft.World/GrassTile.cpp +++ b/Minecraft.World/GrassTile.cpp @@ -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)