Fix teleport pipe pump bug
This commit is contained in:
parent
7281ec7af7
commit
bdc6074790
@ -161,6 +161,7 @@ liquid.register_nodes({"techage:ta5_tele_pipe"}, Pipe, "tank", {"L"}, {
|
|||||||
nvm.oil_amount = nvm.oil_amount or 0
|
nvm.oil_amount = nvm.oil_amount or 0
|
||||||
if not blocked and techage.is_operational(nvm) then
|
if not blocked and techage.is_operational(nvm) then
|
||||||
local rmt_pos = teleport.get_remote_pos(pos)
|
local rmt_pos = teleport.get_remote_pos(pos)
|
||||||
|
if rmt_pos then
|
||||||
local rmt_nvm = techage.get_nvm(rmt_pos)
|
local rmt_nvm = techage.get_nvm(rmt_pos)
|
||||||
if techage.is_operational(rmt_nvm) then
|
if techage.is_operational(rmt_nvm) then
|
||||||
local pipe_dir = M(rmt_pos):get_int("pipe_dir")
|
local pipe_dir = M(rmt_pos):get_int("pipe_dir")
|
||||||
@ -176,6 +177,7 @@ liquid.register_nodes({"techage:ta5_tele_pipe"}, Pipe, "tank", {"L"}, {
|
|||||||
State:blocked(pos, nvm, S("Remote block error"))
|
State:blocked(pos, nvm, S("Remote block error"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return amount
|
return amount
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user