Fixes #4372: Limit validated itemstack to a size of 1 (#4373)

This commit is contained in:
yueh
2020-05-07 11:49:00 +02:00
committed by GitHub
parent f667e9a5f0
commit f3349b0a2d
@@ -147,7 +147,7 @@ public class CraftingTreeNode
for( IAEItemStack fuzz : itemList )
{
if( this.parent.details.isValidItemForSlot( this.getSlot(), fuzz.createItemStack(), this.world ) )
if( this.parent.details.isValidItemForSlot( this.getSlot(), fuzz.copy().setStackSize( 1 ).createItemStack(), this.world ) )
{
fuzz = fuzz.copy();
fuzz.setStackSize( l );