Skip to content

Commit

Permalink
item/stack.go: Don't reset custom name text formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
T14Raptor committed Oct 6, 2020
1 parent 8c8a432 commit 4af054d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dragonfly/item/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ func (s Stack) AttackDamage() float64 {
// according to the rules of fmt.Sprintln.
func (s Stack) WithCustomName(a ...interface{}) Stack {
s.customName = format(a)
if !strings.HasPrefix(s.customName, "§r§f") {
// We always reset it if it's not already done, because Vanilla makes custom names in italic, which
// servers generally just don't want.
s.customName = "§r§f" + s.customName
}
if nameable, ok := s.Item().(nameable); ok {
s.item = nameable.WithName(a...)
}
Expand Down

0 comments on commit 4af054d

Please sign in to comment.