aboutsummaryrefslogtreecommitdiff
path: root/src/script/common/c_content.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-08-21 20:04:04 +0200
committerGitHub <noreply@github.com>2021-08-21 20:04:04 +0200
commit0c1e9603db32b4281974fdd8b8e3b505148be47e (patch)
tree376b6f04d1c27388fbb453694827976a9a6d39a0 /src/script/common/c_content.h
parenta72d13064fcbddaf332c7d53e6f34b74d8781586 (diff)
downloadminetest-0c1e9603db32b4281974fdd8b8e3b505148be47e.tar.gz
minetest-0c1e9603db32b4281974fdd8b8e3b505148be47e.tar.bz2
minetest-0c1e9603db32b4281974fdd8b8e3b505148be47e.zip
HUD: Reject and warn on invalid stat types (#11548)
This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
Diffstat (limited to 'src/script/common/c_content.h')
-rw-r--r--src/script/common/c_content.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h
index 4dc614706..e762604a4 100644
--- a/src/script/common/c_content.h
+++ b/src/script/common/c_content.h
@@ -193,12 +193,12 @@ void read_json_value (lua_State *L, Json::Value &root,
void push_pointed_thing(lua_State *L, const PointedThing &pointed, bool csm =
false, bool hitpoint = false);
-void push_objectRef (lua_State *L, const u16 id);
+void push_objectRef (lua_State *L, const u16 id);
-void read_hud_element (lua_State *L, HudElement *elem);
+void read_hud_element (lua_State *L, HudElement *elem);
-void push_hud_element (lua_State *L, HudElement *elem);
+void push_hud_element (lua_State *L, HudElement *elem);
-HudElementStat read_hud_change (lua_State *L, HudElement *elem, void **value);
+bool read_hud_change (lua_State *L, HudElementStat &stat, HudElement *elem, void **value);
-void push_collision_move_result(lua_State *L, const collisionMoveResult &res);
+void push_collision_move_result(lua_State *L, const collisionMoveResult &res);