You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File.listFiles() is not guaranteed to return files in any given order. From the java docs on File:
There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
On non-windows platforms, files are returned in whatever order they are stored on the filesystem... you need to explicitly sort the list if you want predictable behavior with respect to removing/adding recipes for the same items/blocks across multiple scripts. I suspect this is why it "works fine" on windows, but is causing problems for people on other platforms.
The text was updated successfully, but these errors were encountered:
File.listFiles() is not guaranteed to return files in any given order. From the java docs on File:
There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
On non-windows platforms, files are returned in whatever order they are stored on the filesystem... you need to explicitly sort the list if you want predictable behavior with respect to removing/adding recipes for the same items/blocks across multiple scripts. I suspect this is why it "works fine" on windows, but is causing problems for people on other platforms.
The text was updated successfully, but these errors were encountered: