Skip to content

Commit

Permalink
feat: make malignant flesh veins replaceable
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Nov 3, 2023
1 parent 320cc67 commit c574f3d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,7 @@ public BlockState updateShape(BlockState state, Direction direction, BlockState

@Override
public boolean canBeReplaced(BlockState state, BlockPlaceContext useContext) {
ItemStack stack = useContext.getItemInHand();
boolean isValidItem = stack.is(asItem()) || stack.isEmpty();
return isValidItem && super.canBeReplaced(state, useContext);
return !useContext.getItemInHand().is(asItem()) || super.canBeReplaced(state, useContext);
}

@Override
Expand Down

0 comments on commit c574f3d

Please sign in to comment.