Fix a bug making sure that onInventoryChanged is run when a player joins the world