Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions server/world/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package world
import (
_ "embed"
"fmt"
"image"

"github.com/df-mc/dragonfly/server/item/category"
"github.com/sandertv/gophertunnel/minecraft/nbt"
"image"
)

// Item represents an item that may be added to an inventory. It has a method to encode the item to an ID and
Expand Down Expand Up @@ -46,7 +47,7 @@ func RegisterItem(item Item) {
customItems = append(customItems, c)
}
if _, ok := itemNamesToRuntimeIDs[name]; !ok {
panic(fmt.Sprintf("item name %v does not have a runtime ID", name))
panic(fmt.Sprintf("item registered with name %v does not exist in the vanilla item runtime ID table", name))
}
items[h] = item
}
Expand Down