It’s seems that the shadowed field in the mixin class haven’t remapped it’s name when building by mixin, why?
Repo: GitHub - SettingDust/Paraglider: A Minecraft mod. https://www.curseforge.com/minecraft/mc-mods/paragliders
The compiled file is
@Mixin(class_3244.class)
public class MixinServerPlayNetworkHandler {
@Shadow
public class_3222 player;
@ModifyExpressionValue(
method = "m_rpfiixll",
at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerPlayerEntity;hasVehicle()Z")
)
public boolean paraglider$avoidFloating(boolean original) {
return original && ParaglidingAccessor.INSTANCE.getParagliding(player);
}
@Inject(
method = "onUpdateSelectedSlot",
at = @At(
value = "INVOKE_ASSIGN",
shift = At.Shift.BEFORE,
ordinal = 0,
target = "Lnet/minecraft/server/network/ServerPlayerEntity;getInventory()Lnet/minecraft/entity/player/PlayerInventory;"
)
)
public void paraglider$resetParaglider(class_2868 packet, CallbackInfo ci) {
ParaglidingComponentKt.disableParaglidingAfterSwitchHeld(player, packet);
}
}