Prefix accessor with mixin

This commit is contained in:
FlorianMichael 2023-12-11 21:14:25 +01:00
parent e42ddfe5b4
commit 06ec8e26c1
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -49,8 +49,8 @@ public abstract class MixinWorldPackets1_19 {
final var action = data.readEnumConstant(PlayerActionC2SPacket.Action.class);
final var allGood = data.readBoolean();
final IClientPlayerInteractionManager interactionManager = (IClientPlayerInteractionManager) MinecraftClient.getInstance().interactionManager;
interactionManager.viaFabricPlus$get1_18_2InteractionManager().handleBlockBreakAck(pos, blockState, action, allGood);
final var mixinInteractionManager = (IClientPlayerInteractionManager) MinecraftClient.getInstance().interactionManager;
mixinInteractionManager.viaFabricPlus$get1_18_2InteractionManager().handleBlockBreakAck(pos, blockState, action, allGood);
} catch (Throwable t) {
throw new RuntimeException("Failed to handle BlockBreakAck packet data", t);
}