Skip to content

Commit 0492565

Browse files
DesourSmallJoker
authored andcommittedAug 31, 2019
Document world format version 28 (private nodemeta) (#8857)
1 parent f3fd85a commit 0492565

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎doc/world_format.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ if map format version <= 22:
365365
u16 content_size
366366
u8[content_size] content of metadata. Format depends on type_id, see below.
367367
if map format version >= 23:
368-
u8 version (=1) -- Note the type is u8, while for map format version <= 22 it's u16
368+
u8 version -- Note: type was u16 for map format version <= 22
369+
-- = 1 for map format version < 28
370+
-- = 2 since map format version 28
369371
u16 count of metadata
370372
foreach count:
371373
u16 position (p.Z*MAP_BLOCKSIZE*MAP_BLOCKSIZE + p.Y*MAP_BLOCKSIZE + p.X)
@@ -375,6 +377,7 @@ if map format version >= 23:
375377
u8[key_len] key
376378
u32 val_len
377379
u8[val_len] value
380+
u8 is_private -- only for version >= 2. 0 = not private, 1 = private
378381
serialized inventory
379382

380383
- Node timers

0 commit comments

Comments
 (0)
Please sign in to comment.