We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f04130 commit 733b065Copy full SHA for 733b065
server/internal/iteminternal/builder.go
@@ -3,7 +3,6 @@ package iteminternal
3
import (
4
"github.com/df-mc/dragonfly/server/item/category"
5
"maps"
6
- "strings"
7
)
8
9
// ComponentBuilder represents a builder that can be used to construct an item components map to be sent to a client.
@@ -53,7 +52,7 @@ func (builder *ComponentBuilder) Construct() map[string]any {
53
52
func (builder *ComponentBuilder) applyDefaultProperties(x map[string]any) {
54
x["minecraft:icon"] = map[string]any{
55
"textures": map[string]any{
56
- "default": strings.Split(builder.identifier, ":")[1],
+ "default": builder.identifier,
57
},
58
}
59
x["creative_group"] = builder.category.Group()
0 commit comments