polserver / ModernDistro

Package of scripts and configs needed to run POL
10 stars 17 forks source link

Fixed CreateStackArrayInContainer so it doesn't return error if there… #150

Closed Reloecc closed 8 months ago

Reloecc commented 8 months ago

CreateStackArrayInContainer returns A parameter was invalid error if amount-(amount/limit_per_stack)*limit_per_stack) == 0. So if used for example with amount 50000 and limit_per_stack 10000, it will return an errortext in the last result.

I believe it should pass just fine in such case. Leftover amount should be checked for greater than zero prior to creating.

Admin-Yukiko commented 8 months ago

Thank you for the fix.