From 0467d6a677b28de25803b8ce747e5c659558f660 Mon Sep 17 00:00:00 2001 From: crispiebacon Date: Wed, 18 Sep 2024 14:50:47 -0700 Subject: [PATCH] Fix Docs Co-authored-by: TurkeyMcMac --- doc/lua_api.md | 8 ++++---- src/nodedef.cpp | 2 +- src/script/common/c_content.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index c09782fab..0c43c3213 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -5487,9 +5487,6 @@ Utilities mod_storage_on_disk = true, -- "zstd" method for compress/decompress (5.7.0) compress_zstd = true, - -- The upper four bits of liquid node param2 values are preserved - -- during liquid flow (5.10.0) - preserve_liquid_param2 = true, -- Sound parameter tables support start_time (5.8.0) sound_params_start_time = true, -- New fields for set_physics_override: speed_climb, speed_crouch, @@ -5529,6 +5526,9 @@ Utilities override_item_remove_fields = true, -- The predefined hotbar is a Lua HUD element of type `hotbar` (5.10.0) hotbar_hud_element = true, + -- The upper four bits of liquid node param2 values are preserved + -- during liquid flow (5.10.0) + preserve_liquid_param2 = true, } ``` @@ -9515,7 +9515,7 @@ Used by `minetest.register_node`. post_effect_color = "#00000000", -- Screen tint if a player is inside this node, see `ColorSpec`. -- Color is alpha-blended over the screen. - + post_effect_use_node_color = false, -- If true, the specific node's coloration (with param2 etc.) will be -- applied to the post effect color as it is applied to the node itself. diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 4eb70d6f8..aca5324d0 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -690,7 +690,7 @@ void ContentFeatures::deSerialize(std::istream &is, u16 protocol_version) if (is.eof()) throw SerializationError(""); post_effect_color_shaded = tmp; - + tmp = readU8(is); if (is.eof()) throw SerializationError(""); diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 95f7ab726..e1e32d388 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -791,7 +791,7 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index) lua_getfield(L, index, "post_effect_color"); read_color(L, -1, &f.post_effect_color); lua_pop(L, 1); - + getboolfield(L, index, "post_effect_use_node_color", f.post_effect_use_node_color); getboolfield(L, index, "post_effect_color_shaded", f.post_effect_color_shaded);