Skip to content

Commit

Permalink
added advanced rotor to be ignored.
Browse files Browse the repository at this point in the history
added advanced rotor to be ignored.
  • Loading branch information
Tostito committed Oct 27, 2014
1 parent 16153cc commit e4540ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SE_NoBeacon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
$rotorcount = $node.SelectNodes("CubeBlocks/MyObjectBuilder_CubeBlock[@xsi:type='MyobjectBuilder_MotorRotor']", $ns).count
$pistoncount = $node.SelectNodes("CubeBlocks/MyObjectBuilder_CubeBlock[@xsi:type='MyobjectBuilder_PistonTop']", $ns).count
$wheelcount = $node.SelectNodes("CubeBlocks/MyObjectBuilder_CubeBlock[@xsi:type='MyobjectBuilder_Wheel']", $ns).count
$ignoretotal = $rotorcount + $pistoncount + $wheelcount
$advrotorcount = $node.SelectNodes("CubeBlocks/MyObjectBuilder_CubeBlock[@xsi:type='MyobjectBuilder_MotorAdvancedRotor']", $ns).count
$ignoretotal = $rotorcount + $pistoncount + $wheelcount + $advrotorcount
IF($ignoretotal -eq 0){
$node.ParentNode.RemoveChild($node)
}
Expand Down

0 comments on commit e4540ba

Please sign in to comment.