Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public boolean matches(@Nonnull ItemStack filterStack, FluidStack target) {
Item item = ghostStack.getItem();
if (item instanceof IFluidFilter) {
IFluidFilter filter = (IFluidFilter) item;
if (filter.matches(ghostStack, target)) {
if (filter.matches(ghostStack, target) == !inverted) {
return !inverted;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public boolean matches(@Nonnull ItemStack filterStack, ItemStack target) {

if (useOreDic) {
int[] ghostOreIDs = OreDictionary.getOreIDs(ghostStack);
int[] targetOreIDs = OreDictionary.getOreIDs(ghostStack);
int[] targetOreIDs = OreDictionary.getOreIDs(target);
for (int a : ghostOreIDs) {
for (int b : targetOreIDs) {
if (a == b) return !inverted;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public IFluidTankProperties[] getTankProperties() {

@Override
public int fill(FluidStack resource, boolean doFill) {
return resource != null ? resource.amount : 0;
return resource != null && (FILTER.isEmpty() || FILTER.matches(resource)) ? resource.amount : 0;
}

@Nullable
Expand Down