mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-20 19:04:44 -04:00
Fix build after bad merge
This commit is contained in:
parent
c0bdb897d1
commit
2986a625c7
2 changed files with 2 additions and 18 deletions
fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue