Merge pull request #661 from Adubbz/master
Made eating particles compatible with metadata
This commit is contained in:
commit
bf127348c9
1 changed files with 9 additions and 0 deletions
|
@ -56,6 +56,15 @@
|
||||||
if (this.itemInUseCount <= 25 && this.itemInUseCount % 4 == 0)
|
if (this.itemInUseCount <= 25 && this.itemInUseCount % 4 == 0)
|
||||||
{
|
{
|
||||||
this.updateItemUse(itemstack, 5);
|
this.updateItemUse(itemstack, 5);
|
||||||
|
@@ -448,7 +448,7 @@
|
||||||
|
vec31.rotateAroundX(-this.rotationPitch * (float)Math.PI / 180.0F);
|
||||||
|
vec31.rotateAroundY(-this.rotationYaw * (float)Math.PI / 180.0F);
|
||||||
|
vec31 = vec31.addVector(this.posX, this.posY + (double)this.getEyeHeight(), this.posZ);
|
||||||
|
- this.worldObj.spawnParticle("iconcrack_" + par1ItemStack.getItem().itemID, vec31.xCoord, vec31.yCoord, vec31.zCoord, vec3.xCoord, vec3.yCoord + 0.05D, vec3.zCoord);
|
||||||
|
+ this.worldObj.spawnParticle("iconcrack_" + par1ItemStack.getItem().itemID + "_" + par1ItemStack.getItemDamage(), vec31.xCoord, vec31.yCoord, vec31.zCoord, vec3.xCoord, vec3.yCoord + 0.05D, vec3.zCoord);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.playSound("random.eat", 0.5F + 0.5F * (float)this.rand.nextInt(2), (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);
|
||||||
@@ -537,11 +556,11 @@
|
@@ -537,11 +556,11 @@
|
||||||
this.cameraYaw = 0.0F;
|
this.cameraYaw = 0.0F;
|
||||||
this.addMountedMovementStat(this.posX - d0, this.posY - d1, this.posZ - d2);
|
this.addMountedMovementStat(this.posX - d0, this.posY - d1, this.posZ - d2);
|
||||||
|
|
Loading…
Reference in a new issue