Skip to content

Commit

Permalink
Toggles dont contain text as far as I know
Browse files Browse the repository at this point in the history
This was likely copied over from the Input's default field
  • Loading branch information
theaddonn authored Oct 3, 2024
1 parent 209681f commit 25aa5e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/player/form/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func (i Input) Value() string {
type Toggle struct {
// Text is the text displayed over the toggle element. The text may contain Minecraft formatting codes.
Text string
// Default is the default value filled out in the input. The user may remove this value and fill out its
// own text. The text may contain Minecraft formatting codes.
// Default determines if the toggle should be on/off by default.
Default bool

value bool
Expand Down

0 comments on commit 25aa5e4

Please sign in to comment.