From b8887e670415f5d5ade30b3c23033a8e6892efe1 Mon Sep 17 00:00:00 2001 From: comp500 Date: Fri, 8 Jan 2021 01:17:27 +0000 Subject: [PATCH] Don't serialise empty author/version fields in pack.toml --- core/pack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/pack.go b/core/pack.go index 4410788..4af86b7 100644 --- a/core/pack.go +++ b/core/pack.go @@ -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"`