mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 15:03:01 +00:00
1.4.1
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user