Fix the onPlayerInteractEntity mixin causing a crash because the target method signature was not specified ()

This commit is contained in:
haykam821 2021-03-11 17:02:25 -05:00 committed by GitHub
parent 41a6855274
commit 180d867766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ public abstract class MixinServerPlayNetworkHandler implements PlayerInteractEnt
@Shadow
public Entity field_28962;
@Inject(method = "interactAt", at = @At(value = "HEAD"), cancellable = true)
@Inject(method = "interactAt(Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Vec3d;)V", at = @At(value = "HEAD"), cancellable = true)
public void onPlayerInteractEntity(Hand hand, Vec3d hitPosition, CallbackInfo info) {
PlayerEntity player = field_28963.player;
World world = player.getEntityWorld();