From 9dacd39bbd0aa46fedacc86792a4cfd8b0d569f6 Mon Sep 17 00:00:00 2001 From: ANAND Date: Fri, 5 Apr 2019 19:37:18 +0530 Subject: [PATCH] Use table.copy instead of using = syntax Using table.copy ensures that a new copy of the table is created --- shooter/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shooter/api.lua b/shooter/api.lua index 24c2505..e520d04 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -56,9 +56,9 @@ shooter.default_particles = { local shots = {} local shooting = {} -local config = shooter.config +local config = table.copy(shooter.config) local server_step = minetest.settings:get("dedicated_server_step") -local v3d = vector +local v3d = table.copy(vector) local PI = math.pi local sin = math.sin local cos = math.cos