add the patterns inside the terminal to the drop list of the terminal

This commit is contained in:
PrototypeTrousers
2022-01-23 23:08:47 -03:00
parent 8cb013b686
commit 98761809fd
@@ -17,6 +17,8 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.items.IItemHandler;
import java.util.List;
import static appeng.helpers.PatternHelper.PROCESSING_INPUT_LIMIT;
import static appeng.helpers.PatternHelper.PROCESSING_OUTPUT_LIMIT;
@@ -43,6 +45,18 @@ public class PartExpandedProcessingPatternTerminal extends AbstractPartTerminal
super( is );
}
@Override
public void getDrops( final List<ItemStack> drops, final boolean wrenched )
{
for( final ItemStack is : this.pattern )
{
if( !is.isEmpty() )
{
drops.add( is );
}
}
}
@Override
public void readFromNBT( NBTTagCompound data )
{