Stop using inventory.getContents() to allow bukkitforge compatibility.