We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca82a1 commit 6e6f21cCopy full SHA for 6e6f21c
src/main/kotlin/org/polyfrost/polyplus/client/cosmetics/CachedCosmetic.kt
@@ -14,7 +14,9 @@ sealed interface CachedCosmetic {
14
15
override fun asResource(): ResourceLocation? {
16
if (texture == null) {
17
- texture = OmniTextures.load(OmniImages.from(image))
+ val newTexture = OmniTextures.load(OmniImages.from(image))
18
+ texture = newTexture
19
+ return OmniTextures.register(newTexture.location, newTexture)
20
}
21
22
return texture?.location
0 commit comments