Apply the workaround only on dirt, gold and rock tiles.