We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115db76 commit 5d33675Copy full SHA for 5d33675
1 file changed
src/main/kotlin/com/mineinabyss/packy/helpers/AtlasGenerator.kt
@@ -22,8 +22,8 @@ object AtlasGenerator {
22
sources.sortBy { (it as? SingleAtlasSource)?.resource() }
23
24
val atlas = resourcePack.atlas(Atlas.BLOCKS)?.let {
25
- it.toBuilder().sources(it.sources().plus(sources)).build()
26
- } ?: Atlas.atlas(Atlas.BLOCKS, sources)
+ it.toBuilder().sources(it.sources().plus(sources).distinct()).build()
+ } ?: Atlas.atlas(Atlas.BLOCKS, sources.distinct())
27
28
atlas.addTo(resourcePack)
29
}
0 commit comments