jgoffredo / Aftermath_Fixed

This is my try to make Aftermath Minetest subgame work in newer versions of Minetest.
GNU Lesser General Public License v2.1
1 stars 1 forks source link

Fix the possible crash #9

Open NoNameDude opened 3 years ago

NoNameDude commented 3 years ago

Hey I made a little tiny fix in 99% of all cases it sloves the problem a function might not work as planed now but the server / game won't crash anymore I simply said if pos is a nil value stop the function :)

jgoffredo commented 3 years ago

I made the change with not changing the final behavior in mind.

I was trying to keep it working like it should work.

jgoffredo commented 3 years ago

The problem was happening when the mob was killed. It was removed, and after was made a get_pos() of the removed mob, and removed mob does not have position in map.