Fixed server crash due to bypassing the vanilla inventory wrongly.