Compare commits

...

2 commits

Author SHA1 Message Date
Ell
4597192f31 1.16.2 2024-05-21 11:34:56 +02:00
Ell
dff54e4246 use a linked hash map to avoid incorrect network item ordering 2024-05-21 11:33:19 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ mod_name=PrettyPipes
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.16.1
mod_version=1.16.2
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

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;