use of logisticspipes.gui.GuiProviderPipe in project LogisticsPipes by RS485.
the class ProviderPipeInclude method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
if (pipe == null) {
return;
}
if (!(pipe.pipe instanceof PipeItemsProviderLogistics)) {
return;
}
((PipeItemsProviderLogistics) pipe.pipe).setFilterExcluded(getInteger() == 1);
if (FMLClientHandler.instance().getClient().currentScreen instanceof GuiProviderPipe) {
((GuiProviderPipe) FMLClientHandler.instance().getClient().currentScreen).refreshInclude();
}
}
Aggregations