Skip to content

Commit

Permalink
Fix MixinBucketItem
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5 committed Feb 1, 2024
1 parent eead6a7 commit 302054d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ public boolean emptyContents(Player entity, Level world, BlockPos pos, @Nullable
}

@Inject(method = "use", locals = LocalCapture.CAPTURE_FAILHARD, at = @At(value = "INVOKE", remap = false, target = "Lnet/minecraft/world/item/BucketItem;emptyContents(Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/phys/BlockHitResult;)Z"))
private void banner$capture(Level worldIn, Player playerIn, InteractionHand handIn, CallbackInfoReturnable<InteractionResultHolder<ItemStack>> cir, ItemStack stack, BlockHitResult result) {
banner$direction = result.getDirection();
banner$click = result.getBlockPos();
banner$hand = handIn;
private void banner$capture(Level level, Player player, InteractionHand usedHand, CallbackInfoReturnable<InteractionResultHolder<ItemStack>> cir, ItemStack itemStack, BlockHitResult blockHitResult, BlockPos blockPos, Direction direction, BlockPos blockPos2, BlockState blockState, BlockPos blockPos3) {
banner$direction = blockHitResult.getDirection();
banner$click = blockHitResult.getBlockPos();
banner$hand = usedHand;
}

@Inject(method = "use", at = @At("RETURN"))
Expand Down

0 comments on commit 302054d

Please sign in to comment.