Skip to content

Commit

Permalink
respect fortune when shearing amthysts using the scribe
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Sep 17, 2024
1 parent 6ad7ca6 commit b0f9e8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/galena/oreganized/content/item/ScribeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ public InteractionResult useOn(UseOnContext context) {
}

if (state.getBlock() instanceof AmethystClusterBlock && !state.is(Blocks.SMALL_AMETHYST_BUD)) {
Block.dropResources(state, context.getLevel(), context.getClickedPos(), null, context.getPlayer(), new ItemStack(Items.IRON_PICKAXE));
var tool = new ItemStack(Items.IRON_PICKAXE);
tool.setTag(context.getItemInHand().getTag());
Block.dropResources(state, context.getLevel(), context.getClickedPos(), null, context.getPlayer(), tool);
return replaceBlock(context, Blocks.SMALL_AMETHYST_BUD.withPropertiesOf(state), false);
}

Expand Down

0 comments on commit b0f9e8e

Please sign in to comment.