From 2f0d89c5cfb101bccf7bbe8be1b070ce2a4fee4c Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 16 Jul 2022 23:07:41 +0200 Subject: Properly serialize special node id mappings --- serialize.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'serialize.go') diff --git a/serialize.go b/serialize.go index 3cf601c..1d1ea42 100644 --- a/serialize.go +++ b/serialize.go @@ -158,13 +158,14 @@ func Serialize(blk *MapBlk, w io.Writer, nameIdMap map[mt.Content]string) { panic(err) } - var localNameIdMap = make(map[mt.Content]string) + var localNameIdMap = map[mt.Content]string{ + mt.Unknown: "unknown", + mt.Air: "air", + mt.Ignore: "ignore", + } + for i := 0; i < 4096; i++ { id := blk.Param0[i] - if isSpecial(id) { - continue - } - if _, ok := localNameIdMap[id]; ok { continue } -- cgit v1.2.3