Woops. Should be like this

This commit is contained in:
Fesiug 2023-12-04 18:18:09 -05:00
parent 16900968ce
commit a9834f5be8
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ function PT:INV_Weight()
end
-- PROTO: HOLY SHIT THIS SUCKS, MAKES A FUNCTION AND MIGHT RUN EVERY FRAME!!!
table.sort( results, function( a, b )
return (T_WEIGHT[b[2]["Type"]] + b[1]["Acquisition"]*(1e-5))
< (T_WEIGHT[a[2]["Type"]] + a[1]["Acquisition"]*(1e-5))
return (T_WEIGHT[b[2]["Type"]] - b[1]["Acquisition"]*(1e-5))
< (T_WEIGHT[a[2]["Type"]] - a[1]["Acquisition"]*(1e-5))
end )
local finale = {}
for i, v in ipairs( results ) do