KassuK1/BlackOut

Future and Blackout are not compatible - MixinClientPlayerEntity.java

Closed this issue · 3 comments

dekrom commented

Hello, I'm having issues with the file MixinClientPlayerEntity.java /
[17:55:17] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.2).
[17:55:23] [Datafixer Bootstrap/INFO]: 198 Datafixer optimizations took 107 milliseconds
[17:55:24] [Render thread/INFO]: [STDERR]: [LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers.
[17:55:24] [Render thread/INFO]: mixins.future.common.json:MixinMinecraft from mod (unknown)->@Accessor[FIELD_GETTER]::getCurrentFps()I should be static as its target is
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketFull(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketPosGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketLookGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketFull(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketPosGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketLookGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)->@reDIrect::f$f(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 2147483647
[17:55:24] [Render thread/WARN]: @reDIrect conflict. Skipping blackout.mixins.json:MixinClientPlayerEntity from mod blackout->@reDIrect::sendPacketGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V with priority 1000, already redirected by mixins.future.common.json:entity.living.player.MixinEntityPlayerSP from mod (unknown)

Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector sendPacketLookGround(Lnet/minecraft/class_634;Lnet/minecraft/class_2596;)V in blackout.mixins.json:MixinClientPlayerEntity from mod blackout failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap blackout-refmap.json

@Redirect(method = "sendMovementPackets", at = @At(require = 0, value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V", ordinal = 2))
private void sendPacketFull(ClientPlayNetworkHandler instance, Packet<?> packet) {
    networkHandler.sendPacket(Managers.ROTATION.onFull((PlayerMoveC2SPacket.Full) packet));
}

@Redirect(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V", ordinal = 3))
private void sendPacketPosGround(ClientPlayNetworkHandler instance, Packet<?> packet) {
    networkHandler.sendPacket(Managers.ROTATION.onPositionOnGround((PlayerMoveC2SPacket.PositionAndOnGround) packet));
}

@Redirect(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V", ordinal = 4))
private void sendPacketLookGround(ClientPlayNetworkHandler instance, Packet<?> packet) {
    PlayerMoveC2SPacket toSend = Managers.ROTATION.onLookAndOnGround((PlayerMoveC2SPacket.LookAndOnGround) packet);
    if (toSend != null) {
        networkHandler.sendPacket(toSend);
    }
}

@Redirect(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V", ordinal = 5))
private void sendPacketGround(ClientPlayNetworkHandler instance, Packet<?> packet) {
    networkHandler.sendPacket(Managers.ROTATION.onOnlyOnground((PlayerMoveC2SPacket.OnGroundOnly) packet));
}

All these for are the problem, please if anyone can help.
image

require = 0

require = 0
yeah already fixed the same day

solved