inventorysorter icon indicating copy to clipboard operation
inventorysorter copied to clipboard

Add configurable item ordering options

Open dvdkon opened this issue 3 years ago • 5 comments

1.18 version of #156

dvdkon avatar Nov 27 '22 14:11 dvdkon

Is there any plans to still add this feature to 1.18?

moderngamer327 avatar Aug 16 '23 02:08 moderngamer327

@moderngamer327 it has https://github.com/cpw/inventorysorter/pull/156. But you'll need to build it yourself since the developer apparently is happy with his weird sorting preferences and is unwilling to merge these changes.

ABruel avatar Sep 01 '23 14:09 ABruel

@ABruel I actually did try to build it but it wouldn’t work. Something called Jackson-Core has updated to Java 19 but if you build it with Java 19 it can’t be used in 1.18

moderngamer327 avatar Sep 01 '23 16:09 moderngamer327

@moderngamer327 sorry, your initial comment being here confused me. This PR is the 1.18 version. The one I linked previously is on master.

As for how to build, Jackson Core has become incompatible with older versions of gladle https://github.com/FasterXML/jackson-core/issues/955#issuecomment-1480411209. You just need to upgrade the gradle version by changing the value in gradle-wrapper.properties. You may also need to remove the changelog task as it appears the changelog.md file doesn't exist. Here are the required changes:

  • Change gradle version. file: ./gradle/wrapper/gradle-wrapper.properties image

  • Remove changelog generation from build steps. file: ./build.gradle image

Then build it with ./gradlew build (use .\gradlew.bat build if you're on windows) from the root directory of the project and voilà, the jar will be inside build/libs. Remove the old version from your mods folder and place the new one in. Configure the ordering from the main menu and it should work.

Here's a download link if you can't be bothered. https://gofile.io/d/Z6rtgo

ABruel avatar Sep 02 '23 14:09 ABruel

@moderngamer327 Remember to also checkout this pr with gh pr checkout 157. If you don't have gh, you can download it from https://cli.github.com/

ABruel avatar Sep 02 '23 14:09 ABruel