Polymer

Polymer

763k Downloads

Error generating resource pack

ya-evgeniy opened this issue ยท 0 comments

commented

When generating a resource pack using auto-host or command /polymer generate-pack, we get the error "Something went wrong while copying assets of mod: ...".

In our case, method "ModContainer.getRootPaths()" returns two paths:

  1. .../build/classes/main/
  2. .../build/resources/main/

The assets folder does not exist in the first path, but it does exist in the second path.
In this case, when trying to read the assets on the first path, we get an error and the resource pack file is not generated.

This error occurs due to copying files from assets when the assets folder does not exist.
The section of code where the error occurs: