fix: stops farmland from reverting into dirt while there is a beetroot crop planted on top of it

This commit is contained in:
NotVessel committed 2026-11-08 05:33:57 +00:00
1 parent b8056aee60
commit f531de33aa
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ bool FarmTile::isUnderCrops(Level *level, int x, int y, int z)
for (int zz = z - r; zz <= z + r; zz++)
{
int tile = level->getTile(xx, y + 1, zz);
if (tile == Tile::wheat_Id || tile == Tile::melon_stem_Id || tile == Tile::pumpkin_stem_Id || tile == Tile::potatoes_Id || tile == Tile::carrots_Id)
if (tile == Tile::wheat_Id || tile == Tile::melon_stem_Id || tile == Tile::pumpkin_stem_Id || tile == Tile::potatoes_Id || tile == Tile::carrots_Id || tile == Tile::beetroots_Id)
{
return true;
}