fixed schematicannon cart assembler requirements

This commit is contained in:
LordGrimmauld 2020-06-11 16:22:43 +02:00
parent 45747db90a
commit dd4b3385f8

View file

@ -1,11 +1,14 @@
package com.simibubi.create.content.contraptions.components.structureMovement.mounted; package com.simibubi.create.content.contraptions.components.structureMovement.mounted;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllItems;
import com.simibubi.create.AllShapes; import com.simibubi.create.AllShapes;
import com.simibubi.create.AllTileEntities; import com.simibubi.create.AllTileEntities;
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionEntity; import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionEntity;
@ -333,7 +336,10 @@ public class CartAssemblerBlock extends AbstractRailBlock implements ITE<CartAss
@Override @Override
public ItemRequirement getRequiredItems(BlockState state) { public ItemRequirement getRequiredItems(BlockState state) {
return new ItemRequirement(ItemUseType.CONSUME, getRailItem(state)); ArrayList<ItemStack> reuiredItems = new ArrayList<ItemStack>();
reuiredItems.add(new ItemStack(getRailItem(state)));
reuiredItems.add(new ItemStack(asItem()));
return new ItemRequirement(ItemUseType.CONSUME, reuiredItems);
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")