- 16
- 2
- 0
я не могу понять почему это ошибка вылазит, вроде все правильно, но нет, где-то ошибся
весь миксин:
выдает такую ошибку: Injection error: Invalid descriptor on perspective.mixins.json:MixinMouse from mod perspectivemodfork->@Inject:;perspectiveUpdatePitchYaw(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDDI)V! Expected (DLorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDI)V but found (Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDDI)V
в ошибке говорится есть лишний dooble, но если его убрать говорит что он нужен
весь миксин:
Java:
import net.minecraft.client.Mouse;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import talloran.perspective.PerspectiveModFork;
@Mixin(Mouse.class)
public class MixinMouse {
@Inject(
method = "updateMouse",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/tutorial/TutorialManager;onUpdateMouse(DD)V"
),
locals = LocalCapture.CAPTURE_FAILEXCEPTION
)
private void perspectiveUpdatePitchYaw(CallbackInfo info, double adjustedSens, double x, double y, int invert) {
if (PerspectiveModFork.INSTANCE.perspectiveEnabled) {
PerspectiveModFork.INSTANCE.cameraYaw += x / 8.0F;
PerspectiveModFork.INSTANCE.cameraPitch += (y * invert) / 8.0F;
if (Math.abs(PerspectiveModFork.INSTANCE.cameraPitch) > 90.0F) {
PerspectiveModFork.INSTANCE.cameraPitch = PerspectiveModFork.INSTANCE.cameraPitch > 0.0F ? 90.0F : -90.0F;
}
}
}
@Inject(
method = "updateMouse",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/network/ClientPlayerEntity;changeLookDirection(DD)V"
),
cancellable = true
)
private void perspectivePreventPlayerMovement(CallbackInfo info) {
if (PerspectiveModFork.INSTANCE.perspectiveEnabled) {
info.cancel();
}
}
}
выдает такую ошибку: Injection error: Invalid descriptor on perspective.mixins.json:MixinMouse from mod perspectivemodfork->@Inject:;perspectiveUpdatePitchYaw(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDDI)V! Expected (DLorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDI)V but found (Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDDI)V
в ошибке говорится есть лишний dooble, но если его убрать говорит что он нужен