Projectiles are supposed to report their object as puncher an not their owner/shooter.
This is why it crashes with mods like bow2. You need to check with is_player() whether the puncher is a player before treating it as such.
Puncher can be nil or any ObjectRef. That means it can be nothing, any entity object or a player.
I can't report through gitlab because they want my credit card and phone number and I'm not giving it to them.
You should use another git like Codeberg, Gitgud or https://git.minetest.land/
Ok, I think most of the crash cases were already fixed cause the branch I use for dev already included a check on puncher:is_player()
I backported this from my "dev" branch, and added guards for the last places I could reach a surprise, aka punching a untamed droid.
If you can try lastest and confirm all works, it would be nice.
The dev branch allows to share maidroids via the entity keys mod, similar to when you give your car's key to your friend IRL.
Projectiles are supposed to report their object as puncher an not their owner/shooter. This is why it crashes with mods like bow2. You need to check with is_player() whether the puncher is a player before treating it as such.
https://api.luanti.org/entity-damage-mechanism/
Puncher can be nil or any ObjectRef. That means it can be nothing, any entity object or a player.
I can't report through gitlab because they want my credit card and phone number and I'm not giving it to them. You should use another git like Codeberg, Gitgud or https://git.minetest.land/
Ty for the feedback
I tried to use bow2 on droids, and got no crash. I just see some test that may lead to nil crash when droid are not tamed
Ok, I think most of the crash cases were already fixed cause the branch I use for dev already included a check on puncher:is_player() I backported this from my "dev" branch, and added guards for the last places I could reach a surprise, aka punching a untamed droid.
If you can try lastest and confirm all works, it would be nice.
The dev branch allows to share maidroids via the entity keys mod, similar to when you give your car's key to your friend IRL.
Yes, this solved the crashes.