Closed jgoffredo closed 3 years ago
get_pos() is failing, so does not have a place to drop items.
Debugging more mobs_redo.
Solved.
Was removing the object (self.object:remove()) before get position when enable_mob_bones was true.
Modified check_for_death() to not call self.object:remove() when enable_mob_bones is true, making this call in mob_punch() if the mob is dead, just after get_pos() call.
mobs_redo/api.lua changed.
Mobs, when killed, do not drop items, but player drops.