From b8b1c6d3687a68b91be92a8d6cf48e8e4f9e82f3 Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 31 May 2020 22:22:21 +0530 Subject: [PATCH] [trivial] api.lua: Fix code-style --- shooter/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shooter/api.lua b/shooter/api.lua index 3f785a9..0b64599 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -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(...)