Slider can't break unbreakable blocks.

This commit is contained in:
bconlon 2020-08-20 19:26:40 -07:00
parent ac12c59658
commit 56817e28ec

View file

@ -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;
}