Record TagType when decoding RawMessage.

Display item's NBT in example/daze.
Upgrade data/item to 1.17
This commit is contained in:
Tnze
2021-07-05 13:35:22 +08:00
parent 8d14180744
commit e6246ce675
3 changed files with 2432 additions and 2046 deletions

View File

@ -104,7 +104,7 @@ func onScreenSlotChange(id, index int) error {
slot := container.(*screen.Inventory).Slots[index]
itemInfo := item.ByID[item.ID(slot.ID)]
if slot.ID != 0 {
log.Printf("Slot: Screen[%d].Slot[%d]: [%v] * %d", id, index, itemInfo.DisplayName, slot.Count)
log.Printf("Slot: Screen[%d].Slot[%d]: [%v] * %d | NBT: %v", id, index, itemInfo.DisplayName, slot.Count, slot.NBT)
}
}
}