KassuK1 / BlackOut

Plugin for meteor client adding more features mostly focusing on CPVP
GNU General Public License v3.0
111 stars 24 forks source link

Future and Blackout are not compatible - MixinClientPlayerEntity.java #58

Closed dekrom closed 7 months ago

dekrom commented 8 months ago

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

FinLemonKe commented 7 months ago

require = 0

dekrom commented 7 months ago

require = 0 yeah already fixed the same day

dekrom commented 7 months ago

solved