Commit 9405b2c2 by Jonathan Thomas

Cleaning up Mixin code for player icon support

parent e151eddf
...@@ -17,6 +17,7 @@ All notable changes to **CreatureChat** are documented in this file. The format ...@@ -17,6 +17,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
### Fixed ### Fixed
- Changing death message timestamp output to use DEBUG log level - Changing death message timestamp output to use DEBUG log level
- Bug with build causing issues with 1.20, 1.20.1 builds (wrong minimum version set in fabric.mod.json)
## [1.2.1] - 2025-01-01 ## [1.2.1] - 2025-01-01
......
...@@ -17,12 +17,12 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; ...@@ -17,12 +17,12 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
* loading custom player icons in the unused UV coordinates of the player skin image. * loading custom player icons in the unused UV coordinates of the player skin image.
*/ */
@Mixin(PlayerSkinTexture.class) @Mixin(PlayerSkinTexture.class)
public abstract class MixinPlayerSkinTexture1202Plus extends ResourceTexture implements IPlayerSkinTexture { public abstract class MixinPlayerSkinTexture extends ResourceTexture implements IPlayerSkinTexture {
@Unique @Unique
private NativeImage cachedSkinImage; private NativeImage cachedSkinImage;
public MixinPlayerSkinTexture1202Plus(Identifier location) { public MixinPlayerSkinTexture(Identifier location) {
super(location); super(location);
} }
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
"client": [ "client": [
"EntityRendererMixin", "EntityRendererMixin",
"MixinPlayerCustomTexture", "MixinPlayerCustomTexture",
"MixinPlayerSkinTexture1202Plus" "MixinPlayerSkinTexture"
], ],
"env": { "env": {
"client.MixinPlayerCustomTexture": { "client.MixinPlayerCustomTexture": {
"minVersion": "1.20" "minVersion": "1.20"
}, },
"client.MixinPlayerSkinTexture1202Plus": { "client.MixinPlayerSkinTexture": {
"minVersion": "1.20" "minVersion": "1.20"
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment