Skip to content

Commit b0f9e8e

Browse files
committed
respect fortune when shearing amthysts using the scribe
1 parent 6ad7ca6 commit b0f9e8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/galena/oreganized/content/item/ScribeItem.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ public InteractionResult useOn(UseOnContext context) {
125125
}
126126

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

0 commit comments

Comments
 (0)