diff --git a/StrategyLibs/BLADETOWASTE.lua b/StrategyLibs/BLADETOWASTE.lua index 5edf140..a633099 100644 --- a/StrategyLibs/BLADETOWASTE.lua +++ b/StrategyLibs/BLADETOWASTE.lua @@ -108,10 +108,10 @@ local function GetEdgeToMachine( Edges, vtNFace, sBladeType) end if sBladeType == 'Top' then - table.sort( EdgesSorted, CompareEdgesBottomHead) + table.sort( EdgesSorted, CompareEdgesTopHead) EdgeToMachine = EdgesSorted[1] elseif sBladeType == 'Bottom' then - table.sort( EdgesSorted, CompareEdgesTopHead) + table.sort( EdgesSorted, CompareEdgesBottomHead) EdgeToMachine = EdgesSorted[1] elseif sBladeType == 'TopDownUp' then local vtEdgeDirection