Update item data.

This commit is contained in:
Tom
2020-09-20 20:37:50 -07:00
parent a46acaa064
commit bb278ddd1d
4 changed files with 3122 additions and 2066 deletions

View File

@ -1,8 +1,8 @@
package entity
import (
"github.com/Tnze/go-mc/data"
"github.com/Tnze/go-mc/data/entity"
item "github.com/Tnze/go-mc/data/items"
"github.com/Tnze/go-mc/nbt"
pk "github.com/Tnze/go-mc/net/packet"
"github.com/google/uuid"
@ -70,5 +70,5 @@ func (s *Slot) Decode(r pk.DecodeReader) error {
}
func (s Slot) String() string {
return data.ItemNameByID[s.ItemID]
return item.ByID[item.ID(s.ItemID)].DisplayName
}