Fix landing particles not showing up. Cloes #2661
This commit is contained in:
parent
38c57d9038
commit
7a8475df6e
1 changed files with 28 additions and 27 deletions
|
@ -1,10 +1,11 @@
|
||||||
--- ../src-base/minecraft/net/minecraft/entity/EntityLivingBase.java
|
--- ../src-base/minecraft/net/minecraft/entity/EntityLivingBase.java
|
||||||
+++ ../src-work/minecraft/net/minecraft/entity/EntityLivingBase.java
|
+++ ../src-work/minecraft/net/minecraft/entity/EntityLivingBase.java
|
||||||
@@ -190,9 +190,11 @@
|
@@ -189,10 +189,11 @@
|
||||||
|
{
|
||||||
float f = (float)MathHelper.func_76123_f(this.field_70143_R - 3.0F);
|
float f = (float)MathHelper.func_76123_f(this.field_70143_R - 3.0F);
|
||||||
|
|
||||||
if (p_184231_4_.func_185904_a() != Material.field_151579_a)
|
- if (p_184231_4_.func_185904_a() != Material.field_151579_a)
|
||||||
+ if (p_184231_4_.func_177230_c().isAir(p_184231_4_, field_70170_p, p_184231_5_))
|
+ if (!p_184231_4_.func_177230_c().isAir(p_184231_4_, field_70170_p, p_184231_5_))
|
||||||
{
|
{
|
||||||
double d0 = Math.min((double)(0.2F + f / 15.0F), 2.5D);
|
double d0 = Math.min((double)(0.2F + f / 15.0F), 2.5D);
|
||||||
int i = (int)(150.0D * d0);
|
int i = (int)(150.0D * d0);
|
||||||
|
@ -12,7 +13,7 @@
|
||||||
((WorldServer)this.field_70170_p).func_175739_a(EnumParticleTypes.BLOCK_DUST, this.field_70165_t, this.field_70163_u, this.field_70161_v, i, 0.0D, 0.0D, 0.0D, 0.15000000596046448D, new int[] {Block.func_176210_f(p_184231_4_)});
|
((WorldServer)this.field_70170_p).func_175739_a(EnumParticleTypes.BLOCK_DUST, this.field_70165_t, this.field_70163_u, this.field_70161_v, i, 0.0D, 0.0D, 0.0D, 0.15000000596046448D, new int[] {Block.func_176210_f(p_184231_4_)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -264,7 +266,7 @@
|
@@ -264,7 +265,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
{
|
{
|
||||||
this.func_184210_p();
|
this.func_184210_p();
|
||||||
}
|
}
|
||||||
@@ -363,7 +365,7 @@
|
@@ -363,7 +364,7 @@
|
||||||
if (!this.field_70170_p.field_72995_K && (this.func_70684_aJ() || this.field_70718_bc > 0 && this.func_146066_aG() && this.field_70170_p.func_82736_K().func_82766_b("doMobLoot")))
|
if (!this.field_70170_p.field_72995_K && (this.func_70684_aJ() || this.field_70718_bc > 0 && this.func_146066_aG() && this.field_70170_p.func_82736_K().func_82766_b("doMobLoot")))
|
||||||
{
|
{
|
||||||
int i = this.func_70693_a(this.field_70717_bb);
|
int i = this.func_70693_a(this.field_70717_bb);
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
while (i > 0)
|
while (i > 0)
|
||||||
{
|
{
|
||||||
int j = EntityXPOrb.func_70527_a(i);
|
int j = EntityXPOrb.func_70527_a(i);
|
||||||
@@ -424,6 +426,7 @@
|
@@ -424,6 +425,7 @@
|
||||||
{
|
{
|
||||||
this.field_70755_b = p_70604_1_;
|
this.field_70755_b = p_70604_1_;
|
||||||
this.field_70756_c = this.field_70173_aa;
|
this.field_70756_c = this.field_70173_aa;
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityLivingBase func_110144_aD()
|
public EntityLivingBase func_110144_aD()
|
||||||
@@ -775,6 +778,8 @@
|
@@ -775,6 +777,8 @@
|
||||||
|
|
||||||
public void func_70691_i(float p_70691_1_)
|
public void func_70691_i(float p_70691_1_)
|
||||||
{
|
{
|
||||||
|
@ -47,7 +48,7 @@
|
||||||
float f = this.func_110143_aJ();
|
float f = this.func_110143_aJ();
|
||||||
|
|
||||||
if (f > 0.0F)
|
if (f > 0.0F)
|
||||||
@@ -795,6 +800,7 @@
|
@@ -795,6 +799,7 @@
|
||||||
|
|
||||||
public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_)
|
public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_)
|
||||||
{
|
{
|
||||||
|
@ -55,7 +56,7 @@
|
||||||
if (this.func_180431_b(p_70097_1_))
|
if (this.func_180431_b(p_70097_1_))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -883,9 +889,9 @@
|
@@ -883,9 +888,9 @@
|
||||||
this.field_70718_bc = 100;
|
this.field_70718_bc = 100;
|
||||||
this.field_70717_bb = (EntityPlayer)entity;
|
this.field_70717_bb = (EntityPlayer)entity;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
|
|
||||||
if (entitywolf.func_70909_n())
|
if (entitywolf.func_70909_n())
|
||||||
{
|
{
|
||||||
@@ -1007,6 +1013,7 @@
|
@@ -1007,6 +1012,7 @@
|
||||||
|
|
||||||
public void func_70645_a(DamageSource p_70645_1_)
|
public void func_70645_a(DamageSource p_70645_1_)
|
||||||
{
|
{
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
if (!this.field_70729_aU)
|
if (!this.field_70729_aU)
|
||||||
{
|
{
|
||||||
Entity entity = p_70645_1_.func_76346_g();
|
Entity entity = p_70645_1_.func_76346_g();
|
||||||
@@ -1034,11 +1041,24 @@
|
@@ -1034,11 +1040,24 @@
|
||||||
i = EnchantmentHelper.func_185283_h((EntityLivingBase)entity);
|
i = EnchantmentHelper.func_185283_h((EntityLivingBase)entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +101,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.field_70170_p.func_72960_a(this, (byte)3);
|
this.field_70170_p.func_72960_a(this, (byte)3);
|
||||||
@@ -1113,7 +1133,7 @@
|
@@ -1113,7 +1132,7 @@
|
||||||
BlockPos blockpos = new BlockPos(i, j, k);
|
BlockPos blockpos = new BlockPos(i, j, k);
|
||||||
IBlockState iblockstate = this.field_70170_p.func_180495_p(blockpos);
|
IBlockState iblockstate = this.field_70170_p.func_180495_p(blockpos);
|
||||||
Block block = iblockstate.func_177230_c();
|
Block block = iblockstate.func_177230_c();
|
||||||
|
@ -109,7 +110,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1139,6 +1159,9 @@
|
@@ -1139,6 +1158,9 @@
|
||||||
|
|
||||||
public void func_180430_e(float p_180430_1_, float p_180430_2_)
|
public void func_180430_e(float p_180430_1_, float p_180430_2_)
|
||||||
{
|
{
|
||||||
|
@ -119,7 +120,7 @@
|
||||||
super.func_180430_e(p_180430_1_, p_180430_2_);
|
super.func_180430_e(p_180430_1_, p_180430_2_);
|
||||||
PotionEffect potioneffect = this.func_70660_b(MobEffects.field_76430_j);
|
PotionEffect potioneffect = this.func_70660_b(MobEffects.field_76430_j);
|
||||||
float f = potioneffect == null ? 0.0F : (float)(potioneffect.func_76458_c() + 1);
|
float f = potioneffect == null ? 0.0F : (float)(potioneffect.func_76458_c() + 1);
|
||||||
@@ -1231,6 +1254,8 @@
|
@@ -1231,6 +1253,8 @@
|
||||||
{
|
{
|
||||||
if (!this.func_180431_b(p_70665_1_))
|
if (!this.func_180431_b(p_70665_1_))
|
||||||
{
|
{
|
||||||
|
@ -128,7 +129,7 @@
|
||||||
p_70665_2_ = this.func_70655_b(p_70665_1_, p_70665_2_);
|
p_70665_2_ = this.func_70655_b(p_70665_1_, p_70665_2_);
|
||||||
p_70665_2_ = this.func_70672_c(p_70665_1_, p_70665_2_);
|
p_70665_2_ = this.func_70672_c(p_70665_1_, p_70665_2_);
|
||||||
float f = p_70665_2_;
|
float f = p_70665_2_;
|
||||||
@@ -1279,6 +1304,11 @@
|
@@ -1279,6 +1303,11 @@
|
||||||
|
|
||||||
public void func_184609_a(EnumHand p_184609_1_)
|
public void func_184609_a(EnumHand p_184609_1_)
|
||||||
{
|
{
|
||||||
|
@ -140,7 +141,7 @@
|
||||||
if (!this.field_82175_bq || this.field_110158_av >= this.func_82166_i() / 2 || this.field_110158_av < 0)
|
if (!this.field_82175_bq || this.field_110158_av >= this.func_82166_i() / 2 || this.field_110158_av < 0)
|
||||||
{
|
{
|
||||||
this.field_110158_av = -1;
|
this.field_110158_av = -1;
|
||||||
@@ -1476,6 +1506,7 @@
|
@@ -1476,6 +1505,7 @@
|
||||||
|
|
||||||
public void func_110145_l(Entity p_110145_1_)
|
public void func_110145_l(Entity p_110145_1_)
|
||||||
{
|
{
|
||||||
|
@ -148,7 +149,7 @@
|
||||||
if (!(p_110145_1_ instanceof EntityBoat) && !(p_110145_1_ instanceof EntityHorse))
|
if (!(p_110145_1_ instanceof EntityBoat) && !(p_110145_1_ instanceof EntityHorse))
|
||||||
{
|
{
|
||||||
double d1 = p_110145_1_.field_70165_t;
|
double d1 = p_110145_1_.field_70165_t;
|
||||||
@@ -1500,7 +1531,7 @@
|
@@ -1500,7 +1530,7 @@
|
||||||
|
|
||||||
if (!this.field_70170_p.func_184143_b(axisalignedbb1))
|
if (!this.field_70170_p.func_184143_b(axisalignedbb1))
|
||||||
{
|
{
|
||||||
|
@ -157,7 +158,7 @@
|
||||||
{
|
{
|
||||||
this.func_70634_a(d11, this.field_70163_u + 1.0D, d12);
|
this.func_70634_a(d11, this.field_70163_u + 1.0D, d12);
|
||||||
return;
|
return;
|
||||||
@@ -1508,14 +1539,14 @@
|
@@ -1508,14 +1538,14 @@
|
||||||
|
|
||||||
BlockPos blockpos = new BlockPos(d11, this.field_70163_u - 1.0D, d12);
|
BlockPos blockpos = new BlockPos(d11, this.field_70163_u - 1.0D, d12);
|
||||||
|
|
||||||
|
@ -174,7 +175,7 @@
|
||||||
{
|
{
|
||||||
d1 = d11;
|
d1 = d11;
|
||||||
d13 = this.field_70163_u + 2.0D;
|
d13 = this.field_70163_u + 2.0D;
|
||||||
@@ -1586,6 +1617,7 @@
|
@@ -1586,6 +1616,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.field_70160_al = true;
|
this.field_70160_al = true;
|
||||||
|
@ -182,7 +183,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void func_70629_bd()
|
protected void func_70629_bd()
|
||||||
@@ -1845,6 +1877,7 @@
|
@@ -1845,6 +1876,7 @@
|
||||||
|
|
||||||
public void func_70071_h_()
|
public void func_70071_h_()
|
||||||
{
|
{
|
||||||
|
@ -190,7 +191,7 @@
|
||||||
super.func_70071_h_();
|
super.func_70071_h_();
|
||||||
this.func_184608_ct();
|
this.func_184608_ct();
|
||||||
|
|
||||||
@@ -2351,6 +2384,40 @@
|
@@ -2351,6 +2383,40 @@
|
||||||
this.field_70752_e = true;
|
this.field_70752_e = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +232,7 @@
|
||||||
public abstract EnumHandSide func_184591_cq();
|
public abstract EnumHandSide func_184591_cq();
|
||||||
|
|
||||||
public boolean func_184587_cr()
|
public boolean func_184587_cr()
|
||||||
@@ -2371,6 +2438,14 @@
|
@@ -2371,6 +2437,14 @@
|
||||||
|
|
||||||
if (itemstack == this.field_184627_bm)
|
if (itemstack == this.field_184627_bm)
|
||||||
{
|
{
|
||||||
|
@ -246,7 +247,7 @@
|
||||||
if (this.func_184605_cv() <= 25 && this.func_184605_cv() % 4 == 0)
|
if (this.func_184605_cv() <= 25 && this.func_184605_cv() % 4 == 0)
|
||||||
{
|
{
|
||||||
this.func_184584_a(this.field_184627_bm, 5);
|
this.func_184584_a(this.field_184627_bm, 5);
|
||||||
@@ -2380,6 +2455,7 @@
|
@@ -2380,6 +2454,7 @@
|
||||||
{
|
{
|
||||||
this.func_71036_o();
|
this.func_71036_o();
|
||||||
}
|
}
|
||||||
|
@ -254,7 +255,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2394,8 +2470,10 @@
|
@@ -2394,8 +2469,10 @@
|
||||||
|
|
||||||
if (itemstack != null && !this.func_184587_cr())
|
if (itemstack != null && !this.func_184587_cr())
|
||||||
{
|
{
|
||||||
|
@ -266,7 +267,7 @@
|
||||||
|
|
||||||
if (!this.field_70170_p.field_72995_K)
|
if (!this.field_70170_p.field_72995_K)
|
||||||
{
|
{
|
||||||
@@ -2478,6 +2556,8 @@
|
@@ -2478,6 +2555,8 @@
|
||||||
this.func_184584_a(this.field_184627_bm, 16);
|
this.func_184584_a(this.field_184627_bm, 16);
|
||||||
ItemStack itemstack = this.field_184627_bm.func_77950_b(this.field_70170_p, this);
|
ItemStack itemstack = this.field_184627_bm.func_77950_b(this.field_70170_p, this);
|
||||||
|
|
||||||
|
@ -275,7 +276,7 @@
|
||||||
if (itemstack != null && itemstack.field_77994_a == 0)
|
if (itemstack != null && itemstack.field_77994_a == 0)
|
||||||
{
|
{
|
||||||
itemstack = null;
|
itemstack = null;
|
||||||
@@ -2507,7 +2587,8 @@
|
@@ -2507,7 +2586,8 @@
|
||||||
{
|
{
|
||||||
if (this.field_184627_bm != null)
|
if (this.field_184627_bm != null)
|
||||||
{
|
{
|
||||||
|
@ -285,7 +286,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.func_184602_cy();
|
this.func_184602_cy();
|
||||||
@@ -2626,4 +2707,28 @@
|
@@ -2626,4 +2706,28 @@
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue