This commit is contained in:
Joachim Stolberg 2021-11-05 19:25:34 +01:00
parent 44cfa46e9f
commit 9f645843ff

View File

@ -26,8 +26,8 @@ local remote_pos = techage.hyperloop.remote_pos
local CAPACITY = 1000 local CAPACITY = 1000
local function on_rightclick(pos, node, clicker, rmt_pos) local function on_rightclick(pos, node, clicker)
rmt_pos = rmt_pos or pos local rmt_pos = remote_pos(pos)
local nvm = techage.get_nvm(rmt_pos) local nvm = techage.get_nvm(rmt_pos)
techage.set_activeformspec(pos, clicker) techage.set_activeformspec(pos, clicker)
M(pos):set_string("formspec", techage.liquid.formspec(rmt_pos, nvm)) M(pos):set_string("formspec", techage.liquid.formspec(rmt_pos, nvm))
@ -241,9 +241,7 @@ minetest.register_node("techage:ta4_tank", {
hyperloop.after_dig_node(pos, oldnode, oldmetadata, digger) hyperloop.after_dig_node(pos, oldnode, oldmetadata, digger)
techage.remove_node(pos, oldnode, oldmetadata) techage.remove_node(pos, oldnode, oldmetadata)
end, end,
on_rightclick = function(pos, node, clicker) on_rightclick = on_rightclick,
return on_rightclick(pos, node, clicker, remote_pos(pos))
end,
ta4_formspec = hyperloop.WRENCH_MENU, ta4_formspec = hyperloop.WRENCH_MENU,
ta_after_formspec = hyperloop.after_formspec, ta_after_formspec = hyperloop.after_formspec,
can_dig = can_dig, can_dig = can_dig,