From 93095cd8c0f72cff0078941e7047c6bf95543c0f Mon Sep 17 00:00:00 2001 From: _Zaizen_ Date: Sun, 19 Apr 2020 22:27:21 +0200 Subject: [PATCH] Raygun fixed. --- weapons.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weapons.lua b/weapons.lua index bbc8cda..b4f0a8c 100644 --- a/weapons.lua +++ b/weapons.lua @@ -107,6 +107,8 @@ function get_pointed_players(head_pos, dir, dist, username) --ritorna un array d if hit.type == "node" then --se c'è un nodo significa che ho colpito un blocco quindi mi devo fermare if array[1] > 0 then --se l'array ad index 1 è maggiore di 0 significa che ci sono giocatori quindi deve ritornare l'array return array + else + return nil end end end