Time |
Nick |
Message |
02:56 |
|
ssieb joined #minetest-hub |
04:14 |
|
fluxflux joined #minetest-hub |
04:58 |
|
fluxflux joined #minetest-hub |
05:37 |
|
vesper11 joined #minetest-hub |
08:38 |
|
ShadowNinja joined #minetest-hub |
10:48 |
|
calcul0n joined #minetest-hub |
11:21 |
|
texmex joined #minetest-hub |
11:24 |
|
Fixer joined #minetest-hub |
11:31 |
|
SmellySneaker joined #minetest-hub |
11:53 |
|
Fixer_ joined #minetest-hub |
12:53 |
|
tomraceror joined #minetest-hub |
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 |
13:29 |
|
fluxflux joined #minetest-hub |
13:32 |
|
HDMI_STECKDOSE joined #minetest-hub |
14:02 |
|
HDMI_STECKDOSE joined #minetest-hub |
14:27 |
|
HDMI_STECKDOSE joined #minetest-hub |
14:34 |
|
aerozoic joined #minetest-hub |
14:35 |
|
CBugDCoder joined #minetest-hub |
15:07 |
|
twoelk joined #minetest-hub |
16:22 |
|
behalebabo joined #minetest-hub |
16:22 |
|
Unarelith joined #minetest-hub |
16:48 |
|
sys4 joined #minetest-hub |
18:09 |
|
tomraceror joined #minetest-hub |
18:21 |
|
calcul0n_ joined #minetest-hub |
18:34 |
|
tomraceror joined #minetest-hub |
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 |
20:08 |
|
ssieb joined #minetest-hub |
20:20 |
|
Rafi59 joined #minetest-hub |
20:49 |
|
behalebabo joined #minetest-hub |
20:57 |
|
twoelk left #minetest-hub |
22:36 |
|
tomraceror joined #minetest-hub |