Fix another chest chain bug

This commit is contained in:
Joachim Stolberg 2023-02-27 19:57:36 +01:00
parent 1a861c7f15
commit 460cc7eefd

View File

@ -3,7 +3,7 @@
TechAge TechAge
======= =======
Copyright (C) 2019-2022 Joachim Stolberg Copyright (C) 2019-2023 Joachim Stolberg
AGPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
@ -378,7 +378,7 @@ local function search_chest_in_front(pos, node)
pos1 = tubelib2.get_pos(pos1, dir) pos1 = tubelib2.get_pos(pos1, dir)
cnt = cnt + 1 cnt = cnt + 1
end end
if node.name == "techage:ta4_chest" then if node.name == "techage:ta4_chest" and node.param2 == param2 then
minetest.after(1, count_number_of_chests, pos1) minetest.after(1, count_number_of_chests, pos1)
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
nvm.front_chest_pos = pos1 nvm.front_chest_pos = pos1