Skip to content

Commit 733b065

Browse files
authored
iteminternal/builder.go: Don't strip item namespace from minecraft:icon texture (#1115)
1 parent 3f04130 commit 733b065

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/internal/iteminternal/builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package iteminternal
33
import (
44
"github.com/df-mc/dragonfly/server/item/category"
55
"maps"
6-
"strings"
76
)
87

98
// 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 {
5352
func (builder *ComponentBuilder) applyDefaultProperties(x map[string]any) {
5453
x["minecraft:icon"] = map[string]any{
5554
"textures": map[string]any{
56-
"default": strings.Split(builder.identifier, ":")[1],
55+
"default": builder.identifier,
5756
},
5857
}
5958
x["creative_group"] = builder.category.Group()

0 commit comments

Comments
 (0)