Blackhole tube side backfix

This commit is contained in:
Joachim Stolberg 2019-03-14 23:18:56 +01:00
parent 7eeb4242e8
commit dc71bf90f4
3 changed files with 18 additions and 2 deletions

@ -23,6 +23,9 @@ TechPack is a collection of following Mods:
**A TechPack Tutorial is available as ![Wiki](https://github.com/joe7575/techpack/wiki)** **A TechPack Tutorial is available as ![Wiki](https://github.com/joe7575/techpack/wiki)**
**Machine data is stored in memory and not in the nodes itself. Therefore, never move or copy machines or tubes by means of Worldedit.**
**The moved/copied nodes will not have valid node numbers, which could lead to a server crash.**
TechPack provides: TechPack provides:
- lumber tubes to connect 2 nodes - lumber tubes to connect 2 nodes
- a Pusher node to pull/push items through tubes - a Pusher node to pull/push items through tubes

@ -1,6 +1,19 @@
# Release Notes for ModPack TechPack [techpack] # Release Notes for ModPack TechPack [techpack]
## V2.02.05 (2019-03-14)
### Additions
### Removals
### Changes
### Fixes
- Blackhole tube side backfix
## V2.02.04 (2019-03-02) ## V2.02.04 (2019-03-02)
### Additions ### Additions

@ -139,8 +139,8 @@ local function get_dest_node(pos, side)
local dir = side_to_dir(side, node.param2) local dir = side_to_dir(side, node.param2)
local spos, sdir = Tube:get_connected_node_pos(pos, dir) local spos, sdir = Tube:get_connected_node_pos(pos, dir)
_,node = Tube:get_node(spos) _,node = Tube:get_node(spos)
local in_side = dir_to_side(sdir, node.param2) local out_side = dir_to_side(tubelib2.Turn180Deg[sdir], node.param2)
return spos, in_side, Name2Name[node.name] or node.name return spos, out_side, Name2Name[node.name] or node.name
end end
local function item_handling_node(name) local function item_handling_node(name)