Can't offer item stack to inventory

Before 5.0.0 stable i was able to player.getInventory().offer(itemStack) but now it always returns FAILURE, even if it will be called directly from PlayerInventory, Hotbar, GridInventory, etc. Now i have to iterate over inventory, look for stack with same type or empty and set() item stack directly in Slot.

Am I doing something wrong? I don’t find this in issuses in github repos, but i do not sure if it is bug or my fault.

I think this has been fixed in one of the latest releases, but don’t quote me on that. — https://github.com/SpongePowered/SpongeCommon/commit/982dffaa80d39fb23ed8f958990a7d25113a081a