]> git.lizzy.rs Git - minetest.git/commitdiff
Correct world_format.txt specification (#12061)
authorDennis Jenkins <dennis.jenkins.75@gmail.com>
Sat, 12 Feb 2022 19:23:46 +0000 (11:23 -0800)
committerGitHub <noreply@github.com>
Sat, 12 Feb 2022 19:23:46 +0000 (20:23 +0100)
The node timers appear at the end of a mapblock for map format version >= 25, not just map format version 25.

doc/world_format.txt

index 98c9d200905837bd2018fc958e7a6155e71cd337..3035c4efb94fdfc4cc2eff3d0dac1c7ce912e4d6 100644 (file)
@@ -346,6 +346,9 @@ if map format version >= 29:
   - 0xffffffff = invalid/unknown timestamp, nothing should be done with the time
                  difference when loaded
 
+  u8 name_id_mapping_version
+  - Should be zero for map format version 29.
+  
   u16 num_name_id_mappings
   foreach num_name_id_mappings
     u16 id
@@ -447,7 +450,7 @@ if map format version < 29:
     u8[name_len] name
 
 - Node timers
-if map format version == 25:
+if map format version >= 25:
   u8 length of the data of a single timer (always 2+4+4=10)
   u16 num_of_timers
   foreach num_of_timers: