howmanysmall / Janitor

Janitor library.
https://howmanysmall.github.io/Janitor/
MIT License
107 stars 17 forks source link

Change Searching Order from GetPromiseLibrary.lua to make more sense #18

Closed lucasmz-dev closed 3 years ago

lucasmz-dev commented 3 years ago

Made the searching order of GetPromiseLibrary.lua to go over places where it would more logical for a Promise library to be on first. Before the place where Janitor was stored itself was like the last to be looked on, and it's the place where you would keep utils and such.

I know this only gets searched when the module is first required, when the server launches and wouldn't really matter, but I think it isn't that hard to change this so that when you do release a new version you use the new order;

howmanysmall commented 3 years ago

Not really necessary. Optimizing something that's called once is beating a dead horse.