Fixed TileEntityCrop cast  to TileEntityFarmland

Checks if the TileEntity is actualy TileEntityFarmland before casting.
Should fix the java.lang.ClassCastException crash