stujones11 / minetest-3d_armor

Visible player armor & wielded items for minetest
Other
56 stars 98 forks source link

crash with shields #102

Closed bell07 closed 7 years ago

bell07 commented 7 years ago

I get today the next crash:

2017-04-08 23:05:46: ERROR[Main]: ServerError: Lua: Runtime error from mod 'mobs_bugslive' in callback on_player_hpchange(): ...t/games/mygame/mods/player-3d_armor/shields/init.lua:8: attempt to call method 'get_pos' (a nil value)
2017-04-08 23:05:46: ERROR[Main]: stack traceback:
2017-04-08 23:05:46: ERROR[Main]:   ...t/games/mygame/mods/player-3d_armor/shields/init.lua:8: in function 'play_sound_effect'
2017-04-08 23:05:46: ERROR[Main]:   ...t/games/mygame/mods/player-3d_armor/shields/init.lua:128: in function '?'
2017-04-08 23:05:46: ERROR[Main]:   ...t/games/mygame/mods/player-3d_armor/3d_armor/api.lua:125: in function 'run_callbacks'
2017-04-08 23:05:46: ERROR[Main]:   ...t/games/mygame/mods/player-3d_armor/3d_armor/api.lua:333: in function 'punch'
2017-04-08 23:05:46: ERROR[Main]:   .../games/mygame/mods/player-3d_armor/3d_armor/init.lua:305: in function 'func'

It is happened on die after fall down high mountain. Why mobs_bugslive is in the trace I did not understand.

EDIT: I was able to reproduce them with minetest_game. Just get a shield, fly up and fall down deadly

stujones11 commented 7 years ago

Yes, it should be getpos not get_pos, thanks for the report.