aboutsummaryrefslogtreecommitdiff
path: root/src/texturePacks/java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-11-16 16:03:35 +0100
committerLinnea Gräf <nea@nea.moe>2025-11-16 16:03:35 +0100
commit44c1ee97c4fc4aa860c57966d938191b08d0994e (patch)
treea36934f9406294f3174cdd6d433088a963a3e3a3 /src/texturePacks/java
parentb132826a3149eae8fe2e3d4aa4d69d289557e2a4 (diff)
downloadFirmament-44c1ee97c4fc4aa860c57966d938191b08d0994e.tar.gz
Firmament-44c1ee97c4fc4aa860c57966d938191b08d0994e.tar.bz2
Firmament-44c1ee97c4fc4aa860c57966d938191b08d0994e.zip
snapshot: main menu
Diffstat (limited to 'src/texturePacks/java')
-rw-r--r--src/texturePacks/java/moe/nea/firmament/mixins/custommodels/CustomSkullTexturePatch.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/texturePacks/java/moe/nea/firmament/mixins/custommodels/CustomSkullTexturePatch.java b/src/texturePacks/java/moe/nea/firmament/mixins/custommodels/CustomSkullTexturePatch.java
index 5096c48..815e4bc 100644
--- a/src/texturePacks/java/moe/nea/firmament/mixins/custommodels/CustomSkullTexturePatch.java
+++ b/src/texturePacks/java/moe/nea/firmament/mixins/custommodels/CustomSkullTexturePatch.java
@@ -4,6 +4,7 @@ package moe.nea.firmament.mixins.custommodels;
import moe.nea.firmament.features.texturepack.CustomSkyBlockTextures;
import net.minecraft.block.SkullBlock;
+import net.minecraft.block.entity.SkullBlockEntity;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.block.entity.SkullBlockEntityRenderer;
import net.minecraft.component.type.ProfileComponent;
@@ -16,11 +17,11 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(SkullBlockEntityRenderer.class)
public class CustomSkullTexturePatch {
@Inject(
- method = "getCutoutRenderLayer",
+ method = "renderSkull",
at = @At("HEAD"),
cancellable = true
)
- private static void onGetRenderLayer(SkullBlock.SkullType type, ProfileComponent profile, CallbackInfoReturnable<RenderLayer> cir) {
- CustomSkyBlockTextures.INSTANCE.modifySkullTexture(type, profile, cir);
+ private void onGetRenderLayer(SkullBlock.SkullType skullType, SkullBlockEntity blockEntity, CallbackInfoReturnable<RenderLayer> cir) {
+ CustomSkyBlockTextures.INSTANCE.modifySkullTexture(skullType, blockEntity.getOwner(), cir);
}
}