if(clickedButton.id == 0) {
CircuitType newCircuitType = getUserSelectedCircuitType();
int actualOutputLevel = this.outputLevel;
if(newCircuitType == CircuitType.inputSetControlRod && this.greaterThan && this.retract) { actualOutputLevel *= -1; }
CommonPacketHandler.INSTANCE.sendToServer(new ReactorRedstonePortChangeMessage(port, newCircuitType.ordinal(), actualOutputLevel, this.greaterThan, this.activeOnPulse));
}
else if(clickedButton.id == 1) {
for(Entry<CircuitType, GuiSelectableButton> pair : btnMap.entrySet()) {
pair.getValue().setSelected(pair.getKey() == port.getCircuitType());
}