Fix digging blocks in survival.

This commit is contained in:
LexManos 2016-03-14 23:44:10 -07:00
parent 28ae283b96
commit 7b0d8f09e9

View file

@ -93,7 +93,7 @@
IBlockState iblockstate = this.field_73092_a.func_180495_p(p_180785_1_); IBlockState iblockstate = this.field_73092_a.func_180495_p(p_180785_1_);
- if (iblockstate.func_185904_a() != Material.field_151579_a) - if (iblockstate.func_185904_a() != Material.field_151579_a)
+ if (iblockstate.func_177230_c().isAir(iblockstate, field_73092_a, p_180785_1_)) + if (!iblockstate.func_177230_c().isAir(iblockstate, field_73092_a, p_180785_1_))
{ {
float f = iblockstate.func_185903_a(this.field_73090_b, this.field_73090_b.field_70170_p, p_180785_1_) * (float)(i + 1); float f = iblockstate.func_185903_a(this.field_73090_b, this.field_73090_b.field_70170_p, p_180785_1_) * (float)(i + 1);