mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-23 21:40:02 -04:00
Fix the onPlayerInteractEntity mixin causing a crash because the target method signature was not specified (#1364)
This commit is contained in:
parent
41a6855274
commit
180d867766
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue