use a linked hash map to avoid incorrect network item ordering

This commit is contained in:
Ell 2024-05-21 11:33:19 +02:00
parent 6b5c63059d
commit dff54e4246

View file

@ -340,7 +340,7 @@ public class PipeNetwork extends SavedData implements GraphListener<BlockPos, Ne
if (!this.isNode(node))
return Collections.emptyList();
this.startProfile("get_network_items");
var ret = new HashMap<IItemHandler, NetworkLocation>();
var ret = new LinkedHashMap<IItemHandler, NetworkLocation>();
for (var dest : this.getOrderedNetworkNodes(node)) {
if (!this.level.isLoaded(dest))
continue;