if(!isFilterVisible()) {
return;
}
ItemStack st = Minecraft.getMinecraft().thePlayer.inventory.getItemStack();
FluidFilter filter = eConduit.getFilter(gui.getDir(), isInput());
if(filter == null && st == null) {
return;
}
if(filter == null) {
filter = new FluidFilter();
}
if(filterBounds.contains(x, y)) {
int slot = (x - filterX) / 18;
filter.setFluid(slot, st);
}
eConduit.setFilter(gui.getDir(), filter, isInput());
EnderIO.packetPipeline.INSTANCE.sendToServer(new PacketFluidFilter(eConduit, gui.getDir(), filter, isInput()));
}