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

Commit

Permalink
Backport 1224833 to MC 1.16.5 (0.5.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jan 30, 2022
1 parent 5d1413b commit 9965933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Fixed

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

## [0.5.1] - 2021-11-28

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ private void update(ItemNetwork network, BlockPos sourcePos, IItemHandler source
}

private Pair<Destination, Integer> findDestinationAndSourceSlot(BlockPos sourcePos, IItemHandler source) {
if (source.getSlots() <= 0) {
return null;
}

int startIndex = 0;

do {
Expand Down

0 comments on commit 9965933

Please sign in to comment.