Fixed inventory NBT reading.