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")
|
||||
{
|
||||
|
|
|
@ -199,9 +199,16 @@ public class EntityDart extends EntityArrow
|
|||
posZ -= motionZ / f2 * 0.05000000074505806D;
|
||||
|
||||
for (int p = 0; p < 16; ++p)
|
||||
{
|
||||
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.setDead();
|
||||
|
|
Loading…
Reference in a new issue