Skip to content
This repository was archived by the owner on Nov 18, 2023. It is now read-only.

Commit 1224833

Browse files
committed
Fixed crash when Extractor Attachment is interacting with inventories that have no slots. Fixes #106
1 parent 9af99a9 commit 1224833

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1515
### Fixed
1616

1717
- Fixed random client crashes by [@malte0811](https://github.com/malte0811).
18+
- Fixed crash when Extractor Attachment is interacting with inventories that have no slots.
1819

1920
## [0.6.0] - 2021-12-18
2021

src/main/java/com/refinedmods/refinedpipes/network/pipe/attachment/extractor/ExtractorAttachment.java

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ private void update(ItemNetwork network, BlockPos sourcePos, IItemHandler source
163163
}
164164

165165
private Pair<Destination, Integer> findDestinationAndSourceSlot(BlockPos sourcePos, IItemHandler source) {
166+
if (source.getSlots() <= 0) {
167+
return null;
168+
}
169+
166170
int startIndex = 0;
167171

168172
do {

0 commit comments

Comments
 (0)