From bcc58cb3048faa146ed0f90b330ebbe791d53b5c Mon Sep 17 00:00:00 2001 From: anon5 Date: Sun, 19 Sep 2021 12:45:50 +0000 Subject: Switch to Minetest 5.4.1 protocol and other changes --- serialize.fmt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'serialize.fmt') diff --git a/serialize.fmt b/serialize.fmt index 991c22b..d021217 100644 --- a/serialize.fmt +++ b/serialize.fmt @@ -51,9 +51,7 @@ map[uint16]*NodeMeta { write8(w, 0) } else { write8(w, 2) - if len(x) > math.MaxUint16 { - chk(ErrTooLong) - } + // len(map[uint16]...) always < math.MaxUint16 write16(w, uint16(len(x))) keys := make([]uint16, 0, len(x)) for key := range x { -- cgit v1.2.3