Err too much.
This commit is contained in:
@@ -5,6 +5,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import appeng.api.util.AEItemDefinition;
|
||||
import appeng.core.AELog;
|
||||
|
||||
public class DamagedItemDefinition implements AEItemDefinition
|
||||
{
|
||||
@@ -22,6 +23,7 @@ public class DamagedItemDefinition implements AEItemDefinition
|
||||
{
|
||||
baseItem = is.getItem();
|
||||
damage = is.getItemDamage();
|
||||
AELog.localization( "item", is.getUnlocalizedName() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +51,7 @@ public class DamagedItemDefinition implements AEItemDefinition
|
||||
if ( baseItem == null )
|
||||
return null;
|
||||
|
||||
return new ItemStack( baseItem, 1, damage );
|
||||
return new ItemStack( baseItem, stackSize, damage );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user