mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-27 23:00:29 +02:00
Copy pos argument for safety
Co-authored-by: DS <vorunbekannt75@web.de>
This commit is contained in:
parent
91be917fe9
commit
546b27343b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user