Skip to content
Open
Show file tree
Hide file tree
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 @@ -82,7 +82,9 @@ public InteractionResultHolder<ItemStack> use(Level world, Player player, Intera
});
return InteractionResultHolder.success(heldItem);
}
return InteractionResultHolder.pass(heldItem);
else {
Comment thread
FactaviCk marked this conversation as resolved.
return super.use(world, player, hand);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static FilterItemStack empty() {
private static void trimFilterComponents(ItemStack filter) {
filter.remove(DataComponents.ENCHANTMENTS);
filter.remove(DataComponents.ATTRIBUTE_MODIFIERS);
filter.remove(DataComponents.FOOD); // Prevent schematics from abusing the food using_converts_to component
}

public boolean isEmpty() {
Expand Down