Use table.copy instead of using = syntax
Using table.copy ensures that a new copy of the table is created
This commit is contained in:
parent
1b5dbda4cf
commit
9dacd39bbd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue