Poison darts now have their respective particles
This commit is contained in:
parent
19010d935d
commit
1cd5650515
2 changed files with 13 additions and 2 deletions
|
@ -68,7 +68,11 @@ public class ClientProxy extends CommonProxy {
|
|||
}
|
||||
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")
|
||||
{
|
||||
|
|
|
@ -200,7 +200,14 @@ public class EntityDart extends EntityArrow
|
|||
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue