minetest-mods / 3d_armor

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

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

Closed Niklp09 closed 8 months ago

Niklp09 commented 8 months ago

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

SmallJoker commented 8 months ago

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

BuckarooBanzay commented 8 months ago

Nice, thanks 👍