Blood Magic

Blood Magic

90M Downloads

copiedStack.setItemDamage(copiedStack.getItemDamage());

onurcancamci opened this issue ยท 0 comments

commented

Hi WayofTime,
i was trying to learn modding and because of that i was looking at you code and in LavaCrystal class i saw that function:
@OverRide
public ItemStack getContainerItem(ItemStack itemStack)
{
//if(!syphonBatteries(itemStack, null, 10))
{
syphonWhileInContainer(itemStack, this.getEnergyUsed());
ItemStack copiedStack = itemStack.copy();
copiedStack.setItemDamage(copiedStack.getItemDamage());
copiedStack.stackSize = 1;
return copiedStack;
}
//return itemStack;
}

in the line of : copiedStack.setItemDamage(copiedStack.getItemDamage());
you set damage of new item to itself. it might be bug or intentional i dont know really but I just wanted ask.