Fix withers breaking bedrock. Closes #2813

This commit is contained in:
LexManos 2016-05-03 16:13:17 -07:00
parent e98cd386e0
commit 4d27393c91

View file

@ -5,7 +5,7 @@
Block block = iblockstate.func_177230_c(); Block block = iblockstate.func_177230_c();
- if (iblockstate.func_185904_a() != Material.field_151579_a && func_181033_a(block)) - if (iblockstate.func_185904_a() != Material.field_151579_a && func_181033_a(block))
+ if (!block.isAir(iblockstate, this.field_70170_p, blockpos)) + if (!block.isAir(iblockstate, this.field_70170_p, blockpos) && block.canEntityDestroy(iblockstate, field_70170_p, blockpos, this))
{ {
flag = this.field_70170_p.func_175655_b(blockpos, true) || flag; flag = this.field_70170_p.func_175655_b(blockpos, true) || flag;
} }