fxied player_interacts_with_blocks not triggering

This commit is contained in:
gnembon committed 2023-02-11 01:33:23 +01:00
1 parent 2b1bb9652b
commit e4c090c355
1 file changed
+3 -2
@@ -53,8 +53,9 @@ public class ServerPlayerGameMode_scarpetEventsMixin implements ServerPlayerInte
} }
@Inject(method = "useItemOn", at = @At( @Inject(method = "useItemOn", at = @At(
value = "RETURN", value = "INVOKE",
ordinal = 2 target = "Lnet/minecraft/advancements/critereon/ItemInteractWithBlockTrigger;trigger(Lnet/minecraft/server/level/ServerPlayer;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/item/ItemStack;)V",
shift = At.Shift.BEFORE
)) ))
private void onBlockActivated(ServerPlayer serverPlayerEntity, Level world, ItemStack stack, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir) private void onBlockActivated(ServerPlayer serverPlayerEntity, Level world, ItemStack stack, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir)
{ {