summaryrefslogtreecommitdiff
path: root/serialize.go
diff options
context:
space:
mode:
Diffstat (limited to 'serialize.go')
-rw-r--r--serialize.go11
1 files changed, 6 insertions, 5 deletions
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
}