From 996670c4076e3c5cf42d05968d32712434375f18 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 7 Jun 2022 03:03:56 +0200 Subject: Fix mapblock compression --- serialize.fmt | 4 ---- 1 file changed, 4 deletions(-) (limited to 'serialize.fmt') diff --git a/serialize.fmt b/serialize.fmt index 1095c92..0b42037 100644 --- a/serialize.fmt +++ b/serialize.fmt @@ -45,8 +45,6 @@ AOMsg writeAOMsg(w, x) image/color.NRGBA w.Write([]byte{x.A, x.R, x.G, x.B}) map[uint16]*NodeMeta { - w := zlib.NewWriter(w) - if x == nil { write8(w, 0) } else { @@ -80,8 +78,6 @@ map[uint16]*NodeMeta { chk(serialize(w, x[key])) } } - - chk(w.Close()) } map[[3]int16]*NodeMeta { -- cgit v1.2.3