mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Don't serialise empty author/version fields in pack.toml
This commit is contained in:
parent
877c7d1b02
commit
b8887e6704
@ -14,8 +14,8 @@ import (
|
||||
// Pack stores the modpack metadata, usually in pack.toml
|
||||
type Pack struct {
|
||||
Name string `toml:"name"`
|
||||
Author string `toml:"author"`
|
||||
Version string `toml:"version"`
|
||||
Author string `toml:"author,omitempty"`
|
||||
Version string `toml:"version,omitempty"`
|
||||
Index struct {
|
||||
// Path is stored in forward slash format relative to pack.toml
|
||||
File string `toml:"file"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user