Skip to content

Commit

Permalink
[trivial] api.lua: Fix code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ClobberXD committed May 31, 2020
1 parent ade1f47 commit b8b1c6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shooter/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ local function process_round(round)
pointed_thing = ray:next()
end

if not pointed_thing then return end

return process_hit(pointed_thing, round.spec, round.dir)
if pointed_thing then
return process_hit(pointed_thing, round.spec, round.dir)
end
end
round.pos = p2
minetest.after(shooter.config.rounds_update_time, function(...)
Expand Down

0 comments on commit b8b1c6d

Please sign in to comment.