Fix build after bad merge

This commit is contained in:
modmuss50 2024-10-15 14:16:00 +01:00
parent c0bdb897d1
commit 2986a625c7
2 changed files with 2 additions and 18 deletions
fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric
api/transfer/v1/item
impl/transfer/item

View file

@ -167,23 +167,7 @@ public final class ItemStorage {
ItemStorage.ITEM.registerForItems(
(itemStack, context) -> new BundleContentsStorage(context),
Items.BUNDLE,
Items.WHITE_BUNDLE,
Items.ORANGE_BUNDLE,
Items.MAGENTA_BUNDLE,
Items.LIGHT_BLUE_BUNDLE,
Items.YELLOW_BUNDLE,
Items.LIME_BUNDLE,
Items.PINK_BUNDLE,
Items.GRAY_BUNDLE,
Items.LIGHT_GRAY_BUNDLE,
Items.CYAN_BUNDLE,
Items.PURPLE_BUNDLE,
Items.BLUE_BUNDLE,
Items.BROWN_BUNDLE,
Items.GREEN_BUNDLE,
Items.RED_BUNDLE,
Items.BLACK_BUNDLE
Items.BUNDLE
);
}
}

View file

@ -64,7 +64,7 @@ public class BundleContentsStorage implements Storage<ItemVariant> {
ItemStack stack = resource.toStack((int) maxAmount);
if (!BundleContentsComponent.canBeBundled(stack)) return 0;
if (!stack.isEmpty() || !stack.getItem().canBeNested()) return 0;
var builder = new BundleContentsComponent.Builder(bundleContents());