From dd4b3385f824f9011ef8c3d2b6f80c111f715a36 Mon Sep 17 00:00:00 2001 From: LordGrimmauld Date: Thu, 11 Jun 2020 16:22:43 +0200 Subject: [PATCH] fixed schematicannon cart assembler requirements --- .../structureMovement/mounted/CartAssemblerBlock.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/mounted/CartAssemblerBlock.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/mounted/CartAssemblerBlock.java index 0eff155f5..67a241ef9 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/mounted/CartAssemblerBlock.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/mounted/CartAssemblerBlock.java @@ -1,11 +1,14 @@ package com.simibubi.create.content.contraptions.components.structureMovement.mounted; +import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.simibubi.create.AllBlocks; +import com.simibubi.create.AllItems; import com.simibubi.create.AllShapes; import com.simibubi.create.AllTileEntities; import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionEntity; @@ -333,7 +336,10 @@ public class CartAssemblerBlock extends AbstractRailBlock implements ITE reuiredItems = new ArrayList(); + reuiredItems.add(new ItemStack(getRailItem(state))); + reuiredItems.add(new ItemStack(asItem())); + return new ItemRequirement(ItemUseType.CONSUME, reuiredItems); } @SuppressWarnings("deprecation")