Copy pos argument for safety

Co-authored-by: DS <vorunbekannt75@web.de>
This commit is contained in:
Jude Melton-Houghton 2022-03-03 07:18:14 -05:00 committed by GitHub
parent 91be917fe9
commit 546b27343b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function mesecon.mvps_get_stack(pos, dir, maximum, all_pull_sticky)
local nodes = {}
local pos_set = {}
local frontiers = mesecon.fifo_queue.new()
frontiers:add(pos)
frontiers:add(vector.new(pos))
for np in frontiers:iter() do
local np_hash = minetest.hash_node_position(np)