]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_player.h
Merge pull request #8776 from osjc/FixGetNode
[minetest.git] / src / script / cpp_api / s_player.h
index 764455a532a9a5622f807ab0cd168143c4aec0e7..cf24ddc730ca4943c6433b59e7a6a2cd305fe425 100644 (file)
@@ -46,7 +46,7 @@ class ScriptApiPlayer : virtual public ScriptApiBase
        bool on_punchplayer(ServerActiveObject *player, ServerActiveObject *hitter,
                        float time_from_last_punch, const ToolCapabilities *toolcap,
                        v3f dir, s16 damage);
-       s16 on_player_hpchange(ServerActiveObject *player, s16 hp_change,
+       s32 on_player_hpchange(ServerActiveObject *player, s32 hp_change,
                        const PlayerHPChangeReason &reason);
        void on_playerReceiveFields(ServerActiveObject *player,
                        const std::string &formname, const StringMap &fields);