Skip to content

Commit ff6ffe9

Browse files
authored
Fix #1182: Item pipe crash (#1183)
1 parent e7aac7f commit ff6ffe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/aztech/modern_industrialization/pipes/item/ItemNetwork.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private static class WhitelistAggregate implements Aggregate {
221221
map.computeIfAbsent(stack.getItem(), v -> new ArrayList<>()).add(target.target);
222222
}
223223
}
224-
} else if (target.target instanceof WhitelistedItemStorage wis) {
224+
} else if (target.target.handler() instanceof WhitelistedItemStorage wis) {
225225
WHITELIST_CACHED_SET.clear();
226226
wis.getWhitelistedItems(WHITELIST_CACHED_SET);
227227
for (Item item : WHITELIST_CACHED_SET) {
@@ -297,6 +297,6 @@ private static int insertTargets(List<InsertTarget> targets, ServerLevel world,
297297
return moved;
298298
}
299299

300-
private record InsertTarget(ItemNetworkNode.ItemConnection connection, IItemSink target) {
300+
private record InsertTarget(ItemNetworkNode.ItemConnection connection, IItemSink.HandlerWrapper target) {
301301
}
302302
}

0 commit comments

Comments
 (0)