Skip to content

Commit

Permalink
Adapt to Forge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Nov 17, 2016
1 parent 1ca6d99 commit 202c4c1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -20,6 +20,7 @@
import net.minecraft.entity.Entity;
import net.minecraft.entity.boss.EntityWither;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityWitherSkull;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
Expand Down Expand Up @@ -87,7 +88,7 @@ public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

@Override
public boolean canEntityDestroy(IBlockState state, IBlockAccess world, BlockPos pos, Entity entity) {
return !(entity instanceof EntityWither);
return !(entity instanceof EntityWither) && !(entity instanceof EntityWitherSkull);
}

@Override
Expand Down

0 comments on commit 202c4c1

Please sign in to comment.