From 94925ba3de7705345b30687f7845c3f850f489da Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 6 Sep 2024 20:20:46 +0200 Subject: Fix a potential issue with mixin modification order [no changelog] --- src/main/java/moe/nea/firmament/init/ClientPlayerRiser.java | 4 ++-- src/main/java/moe/nea/firmament/init/HandledScreenRiser.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/moe/nea/firmament/init/ClientPlayerRiser.java b/src/main/java/moe/nea/firmament/init/ClientPlayerRiser.java index 0a5bedd..d60e3e7 100644 --- a/src/main/java/moe/nea/firmament/init/ClientPlayerRiser.java +++ b/src/main/java/moe/nea/firmament/init/ClientPlayerRiser.java @@ -69,7 +69,7 @@ public class ClientPlayerRiser extends RiserUtils { @Override public void addTinkerers() { - ClassTinkerers.addTransformation(AbstractClientPlayerEntity, it -> mapClassNode(it, getTypeForClassName(PlayerEntity))); - ClassTinkerers.addTransformation(GuiPlayer, it -> mapClassNode(it, getTypeForClassName(AbstractClientPlayerEntity))); + ClassTinkerers.addTransformation(AbstractClientPlayerEntity, it -> mapClassNode(it, getTypeForClassName(PlayerEntity)), true); + ClassTinkerers.addTransformation(GuiPlayer, it -> mapClassNode(it, getTypeForClassName(AbstractClientPlayerEntity)), true); } } diff --git a/src/main/java/moe/nea/firmament/init/HandledScreenRiser.java b/src/main/java/moe/nea/firmament/init/HandledScreenRiser.java index baa0501..bcb754c 100644 --- a/src/main/java/moe/nea/firmament/init/HandledScreenRiser.java +++ b/src/main/java/moe/nea/firmament/init/HandledScreenRiser.java @@ -29,7 +29,7 @@ public class HandledScreenRiser extends RiserUtils { @Override public void addTinkerers() { - ClassTinkerers.addTransformation(HandledScreen, this::handle); + ClassTinkerers.addTransformation(HandledScreen, this::handle, true); } void handle(ClassNode classNode) { -- cgit