diff options
author | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
commit | bcc58cb3048faa146ed0f90b330ebbe791d53b5c (patch) | |
tree | 2373852a0557ea584a62134159eb646b15619be3 /serialize.fmt | |
parent | d6ba88b091f6c9be3b48ab0fe3f94211ee210700 (diff) | |
download | mt-bcc58cb3048faa146ed0f90b330ebbe791d53b5c.tar.xz |
Switch to Minetest 5.4.1 protocol and other changes
Diffstat (limited to 'serialize.fmt')
-rw-r--r-- | serialize.fmt | 4 |
1 files changed, 1 insertions, 3 deletions
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 { |