Open NoNameDude opened 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.
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.
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 :)