Added canBuyCustomEntity hook