Skip to content

Commit ad326d7

Browse files
committed
block/banner.go: Allow middle click picking customized banners
1 parent 104f6d8 commit ad326d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/block/banner.go

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ type Banner struct {
2424
Illager bool
2525
}
2626

27+
// Pick ...
28+
func (b Banner) Pick() item.Stack {
29+
return item.NewStack(Banner{Colour: b.Colour, Patterns: b.Patterns, Illager: b.Illager}, 1)
30+
}
31+
2732
// MaxCount ...
2833
func (Banner) MaxCount() int {
2934
return 16

0 commit comments

Comments
 (0)