1
0

Hoe: Allow grass paths to be tilled

This commit is contained in:
Ryan Fox 2021-12-13 23:32:02 -08:00
parent a713b568e1
commit f860084092
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E

View File

@ -43,11 +43,11 @@ public:
return false;
}
// Can only transform dirt or grass blocks:
// Can only transform dirt, grass, or grass path blocks:
BLOCKTYPE BlockType;
NIBBLETYPE BlockMeta;
a_World->GetBlockTypeMeta(a_ClickedBlockPos, BlockType, BlockMeta);
if ((BlockType != E_BLOCK_DIRT) && (BlockType != E_BLOCK_GRASS))
if ((BlockType != E_BLOCK_DIRT) && (BlockType != E_BLOCK_GRASS) && (BlockType != E_BLOCK_GRASS_PATH))
{
return false;
}