Poison darts now have their respective particles

This commit is contained in:
Adubbz 2013-07-12 18:45:36 +10:00
parent 19010d935d
commit 1cd5650515
2 changed files with 13 additions and 2 deletions

View file

@ -68,7 +68,11 @@ public class ClientProxy extends CommonProxy {
} }
else if (string == "dart") else if (string == "dart")
{ {
entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get()); entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get(), 0);
}
else if (string == "poisondart")
{
entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get(), 1);
} }
else if (string == "dandelion") else if (string == "dandelion")
{ {

View file

@ -200,7 +200,14 @@ public class EntityDart extends EntityArrow
for (int p = 0; p < 16; ++p) for (int p = 0; p < 16; ++p)
{ {
BiomesOPlenty.proxy.spawnParticle("dart", posX, posY, posZ); if (isPoisonous())
{
BiomesOPlenty.proxy.spawnParticle("poisondart", posX, posY, posZ);
}
else
{
BiomesOPlenty.proxy.spawnParticle("dart", posX, posY, posZ);
}
} }
this.playSound("random.bowhit", 1.0F, 1.2F / (rand.nextFloat() * 0.2F + 0.9F)); this.playSound("random.bowhit", 1.0F, 1.2F / (rand.nextFloat() * 0.2F + 0.9F));