Remember x & z passed to getTopSolidOrLiquidBlock and use it for foliage tests. Fixes #575