public void setFilter(final int slot, final Fluid filter) {
refinery.setFilter(slot, filter);
if (refinery.getWorldObj().isRemote) {
PacketPayload payload = new PacketPayload(new PacketPayload.StreamWriter() {
@Override
public void writeData(ByteBuf data) {
data.writeByte(slot);
data.writeShort(filter != null ? filter.getID() : -1);
}