From 0deee5eaf0c2d0d16bf1f56080e5e9ac956dc60e Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 27 Jul 2025 08:55:21 +0200 Subject: [PATCH] Bump network/formspec versions for 5.13.0 --- builtin/game/misc_s.lua | 1 + doc/lua_api.md | 2 ++ src/network/networkprotocol.cpp | 7 +++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/builtin/game/misc_s.lua b/builtin/game/misc_s.lua index 9433f74bb..983bd7096 100644 --- a/builtin/game/misc_s.lua +++ b/builtin/game/misc_s.lua @@ -130,6 +130,7 @@ core.protocol_versions = { ["5.10.0"] = 46, ["5.11.0"] = 47, ["5.12.0"] = 48, + ["5.13.0"] = 49, } setmetatable(core.protocol_versions, {__newindex = function() diff --git a/doc/lua_api.md b/doc/lua_api.md index bb127dc14..e78ee8116 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -2851,6 +2851,8 @@ Version History * Formspec version 9 (5.12.0) * Add allow_close[] * label[]: Add "area label" variant +* Formspec version 10 (5.13.0) + * model[]: Support floating-point frames Elements -------- diff --git a/src/network/networkprotocol.cpp b/src/network/networkprotocol.cpp index a88b5b091..6f9e1fa40 100644 --- a/src/network/networkprotocol.cpp +++ b/src/network/networkprotocol.cpp @@ -65,10 +65,13 @@ PROTOCOL VERSION 48 Add compression to some existing packets [scheduled bump for 5.12.0] + PROTOCOL VERSION 49 + Support of showing a player inventory using 'core.show_formspec' + [scheduled bump for 5.13.0] */ // Note: Also update core.protocol_versions in builtin when bumping -const u16 LATEST_PROTOCOL_VERSION = 48; +const u16 LATEST_PROTOCOL_VERSION = 49; // See also formspec [Version History] in doc/lua_api.md -const u16 FORMSPEC_API_VERSION = 9; +const u16 FORMSPEC_API_VERSION = 10;