Slider can't break unbreakable blocks.
This commit is contained in:
parent
ac12c59658
commit
56817e28ec
|
@ -325,7 +325,7 @@ public class EntitySlider extends EntityFlying implements IAetherBoss {
|
|||
Block block = this.worldObj.getBlock((int) x, (int) y, (int) z);
|
||||
int metadata = this.worldObj.getBlockMetadata((int) x, (int) y, (int) z);
|
||||
|
||||
if (block == Blocks.air || block instanceof BlockDungeonBase) {
|
||||
if (block == Blocks.air || block instanceof BlockDungeonBase || block.getBlockHardness(this.worldObj, (int) x, (int) y, (int) z) < 0.0F) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue