Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ public static void destroyBlock(Level world, BlockPos pos, float effectChance) {

public static void destroyBlock(Level world, BlockPos pos, float effectChance,
Consumer<ItemStack> droppedItemCallback) {
destroyBlockAs(world, pos, null, ItemStack.EMPTY, effectChance, droppedItemCallback);
ItemStack fallbackTool = new ItemStack(Items.COBBLESTONE);
destroyBlockAs(world, pos, null, fallbackTool, effectChance, droppedItemCallback);
}

public static void destroyBlockAs(Level level, BlockPos pos, @Nullable Player player, ItemStack usedTool,
Expand Down