From 5df4d2f2fd3bfe0aae3977c013d5c084cd893cfa Mon Sep 17 00:00:00 2001 From: Jarno Westhof Date: Tue, 18 Jan 2022 19:01:51 +0100 Subject: [PATCH] [Docs] Specified NetworkItem player is about the player slot of the location, not who the item is intended for (#217) --- NetUtils.py | 2 +- docs/network protocol.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NetUtils.py b/NetUtils.py index bf7463bf..85e9fa01 100644 --- a/NetUtils.py +++ b/NetUtils.py @@ -218,7 +218,7 @@ class JSONtoTextParser(metaclass=HandlerMeta): node["color"] = 'cyan' elif flags & 1 << 0: # advancement node["color"] = 'plum' - elif flags & 1 << 1: # never_eclude + elif flags & 1 << 1: # never_exclude node["color"] = 'slateblue' elif flags & 1 << 2: # trap node["color"] = 'salmon' diff --git a/docs/network protocol.md b/docs/network protocol.md index 43cd82d3..97d6356b 100644 --- a/docs/network protocol.md +++ b/docs/network protocol.md @@ -339,7 +339,13 @@ In JSON this may look like: {"item": 3, "location": 3, "player": 0, "flags": 0} ] ``` -Flags are bit flags: +`item` is the item id of the item + +`location` is the location id of the item inside the world + +`player` is the player slot of the world the item is located in + +`flags` are bit flags: | Flag | Meaning | | ----- | ----- | | 0 | Nothing special about this item |