This commit is contained in:
mDiyo committed 2013-08-30 23:23:14 -07:00
1 parent 6a7bf6d2a6
commit 03628e01d4
15 files changed
+127 -15

No files matched your search

@@ -226,6 +226,25 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
movingobjectposition.entityHit.setFire(5);
}
if (returnStack.hasTagCompound())
{
int fireAspect = 0;
NBTTagCompound toolTags = returnStack.getTagCompound().getCompoundTag("InfiTool");
if (toolTags.hasKey("Fiery") || toolTags.hasKey("Lava"))
{
fireAspect *= 4;
if (toolTags.hasKey("Fiery"))
{
fireAspect += toolTags.getInteger("Fiery") / 5 + 1;
}
if (toolTags.getBoolean("Lava"))
{
fireAspect += 3;
}
entity.setFire(fireAspect);
}
}
if (movingobjectposition.entityHit.attackEntityFrom(damagesource, damageInflicted))
{
if (movingobjectposition.entityHit instanceof EntityLivingBase)