Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/gregtech/api/block/machines/BlockMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,10 @@ public boolean supportsVisualConnections() {
protected Pair<TextureAtlasSprite, Integer> getParticleTexture(World world, BlockPos blockPos) {
return MetaTileEntityRenderer.INSTANCE.getParticleTexture(world, blockPos);
}

@Override
public boolean canEntityDestroy(IBlockState state, IBlockAccess world, BlockPos pos, Entity entity) {
MetaTileEntity metaTileEntity = getMetaTileEntity(world, pos);
return !((entity instanceof EntityWither || entity instanceof EntityWitherSkull) && metaTileEntity.getWitherProof());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1229,4 +1229,8 @@ public float getBlockHardness() {
public float getBlockResistance() {
return 6.0f;
}

public boolean getWitherProof(){
return false;
}
}