Open Gordon-Dry opened 5 years ago
Actually, I think they have to be split up; you can't edit (@) and bang (!) within the same HAS directive ... I think.
@PART[*]:HAS[!MODULE[ModuleDataTransmitter]]:HAS[@MODULE[ModuleCommand]]
I will test that
Looks good
Just so you know, I corrected another config in the opposite direction.
Having separate :HAS directives makes MM perform and execute the processed PART TWICE. So with ...
@PART[*]:HAS[MODULE[someModule]]:HAS[MODULE[anotherModule]] { +module=whatever }
If PART has both someModule & anotherModule, whatever will be created at each instance of *Module.
But with ...
@PART[*]:HAS[MODULE[someModule,anotherModule]] { +module=whatever }
Any PART with both someModule & anotherModule will have whatever created only once.
ofc - dunno why I overlooked that one ...
My first one was right btw - I have seen it often and use it myself.
You misleaded me... ;)
So,
@PART[*]:HAS[!MODULE[ModuleDataTransmitter],@MODULE[ModuleCommand]]
Yeah, looking back that would make more sense given what I said about someModule and anotherModule.
Line 1:
@PART[*]:HAS[!MODULE[ModuleDataTransmitter],MODULE[ModuleCommand]]
should be@PART[*]:HAS[!MODULE[ModuleDataTransmitter],@MODULE[ModuleCommand]]