Skip to content

Commit

Permalink
Update PlaceInAirBlockItem.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Dec 22, 2024
1 parent 08191a1 commit 47a5446
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public InteractionResultHolder<ItemStack> use(@NotNull Level level, @NotNull Pla

if (level.isInWorldBounds(pos) && level.getWorldBorder().isWithinBounds(pos) && level.getBlockState(pos).canBeReplaced()) {
Direction reflectedFacingDirection = Direction.getNearest(lookAngle);
BlockPlaceContext context = new BlockPlaceContext(level, player, hand, itemStack, new BlockHitResult(pos.getCenter(), reflectedFacingDirection, pos, false));
BlockPlaceContext context = new BlockPlaceContext(player, hand, itemStack, new BlockHitResult(pos.getCenter(), reflectedFacingDirection, pos, false));
InteractionResult result = this.useOn(context);
if (result.consumesAction()) {
return InteractionResultHolder.sidedSuccess(itemStack, !level.isClientSide());
Expand Down

0 comments on commit 47a5446

Please sign in to comment.