Skip to content

Commit

Permalink
Fixed duplication bug with filter slots. Fixes #1982
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Sep 11, 2018
1 parent 6db8b7e commit eef99ee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### 1.6.5
- Fixed Refined Storage silicon's oredict entry being registered too late (raoulvdberge)
- Fixed duplication bug with filter slots (raoulvdberge)
- The Pattern Grid in fluid mode now supports up to 64 buckets in the input and output processing slots (raoulvdberge)

### 1.6.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ public boolean canInteractWith(EntityPlayer player) {
return true;
}

@Override
public boolean canMergeSlot(ItemStack stack, Slot slot) {
if (slot instanceof SlotFilter || slot instanceof SlotFilterFluid || slot instanceof SlotLegacyFilter) {
return false;
}

return super.canMergeSlot(stack, slot);
}

protected boolean isHeldItemDisabled() {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ public void onContainerClosed(EntityPlayer player) {

@Override
public boolean canMergeSlot(ItemStack stack, Slot slot) {
return (slot == craftingResultSlot || slot == patternResultSlot) ? false : super.canMergeSlot(stack, slot);
if (slot == craftingResultSlot || slot == patternResultSlot) {
return false;
}

return super.canMergeSlot(stack, slot);
}

@Override
Expand Down

0 comments on commit eef99ee

Please sign in to comment.