Skip to content

Commit

Permalink
Derployer
Browse files Browse the repository at this point in the history
  • Loading branch information
simibubi committed Jul 25, 2024
1 parent c013173 commit f6a4851
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ && safeOnUse(clickedState, world, clickedPos, player, hand, result).consumesActi
return;
if (useItem == DENY)
return;
if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem)
&& !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext)))
return;

// Reposition fire placement for convenience
if (item == Items.FLINT_AND_STEEL) {
Expand All @@ -322,9 +325,6 @@ && safeOnUse(clickedState, world, clickedPos, player, hand, result).consumesActi
return;
}

if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem)
&& !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext)))
return;
if (item == Items.ENDER_PEARL)
return;
if (AllItemTags.DEPLOYABLE_DRINK.matches(item))
Expand Down

0 comments on commit f6a4851

Please sign in to comment.