minetest-mods / 3d_armor

Visible player armor & wielded items for minetest
Other
17 stars 40 forks source link

Don't assume `hitter ~= nil` in on_punchplayer callback #138

Closed Niklp09 closed 6 months ago

Niklp09 commented 6 months ago

Should close https://github.com/minetest-mods/3d_armor/issues/137

SmallJoker commented 6 months ago

An early return would be nicer to read than deeply nested conditions.

BuckarooBanzay commented 6 months ago

Nice, thanks 👍