(Possibly) further helped eliminate the memory leak issue.
This commit is contained in:
parent
c69b6bbade
commit
adc100ee17
|
@ -37,6 +37,7 @@ public class AlchemyArrayEffectCrafting extends AlchemyArrayEffect
|
|||
BlockPos pos = tile.getPos();
|
||||
|
||||
ItemStack output = outputStack.copy();
|
||||
output.onCrafting(tile.getWorld(), null, output.stackSize);
|
||||
EntityItem outputEntity = new EntityItem(tile.getWorld(), pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, output);
|
||||
|
||||
tile.getWorld().spawnEntityInWorld(outputEntity);
|
||||
|
|
|
@ -67,6 +67,15 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
|||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreated(ItemStack stack, World world, EntityPlayer player)
|
||||
{
|
||||
if (stack != null && !world.isRemote && stack.getItem() == ModItems.livingArmourChest)
|
||||
{
|
||||
Utils.setUUID(stack);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue