Time Nick Message 13:18 IcyDiamond is it just me or player:get_hp() in a register_on_player_hpchange callback is not immediately accurate for some reason 13:18 IcyDiamond i have to use minetest.after(0.1, ...) for it to give me the real value 13:20 sfan5 don't you receive the new hp as an argument? 13:20 IcyDiamond change only 13:22 sfan5 and :get_hp() doesn't return the old hp value? 13:22 IcyDiamond wait, it returns the old one on purpose? 13:24 sfan5 how would it return the new value when the callback can decide to change the amount of hp subtracted? 13:24 sfan5 hm well this only applies to callback registered with modifier=true 13:24 IcyDiamond i thought thats only when you use the "modifier" argument 13:24 IcyDiamond yeah 13:26 sfan5 even in the other case it makes more sense to me that get_hp would return the old value 13:27 IcyDiamond ok sure, but i did not read that from the documentation, thats why the confusion i guess 13:27 IcyDiamond never mind then 19:07 sfan5 rubenwardy: here's a thing you might want to mention in the modding book https://github.com/minetest/minetest/blob/7dffd08c1a068e5e0748a046fd8a1e884947b597/minetest.conf.example#L1483-L1488