Planes are destroying bedrocks
ken1882 opened this issue ยท 0 comments
Describe the bug
When plane wings collided with blocks the block will break also damaging the part, including bedrock
To Reproduce
Steps to reproduce the behaviour:
- Using
/fill
to generate a bedrock plain - Get a plane and put it on bedrock
- Wreck your plane
- Destroy bedrock and fall out of the world
Expected behaviour
Indestructible blocks should not be destroyed
Screenshots
Versions (please complete the following information)
- Forge: 1.12.2
- Flan's Mod: v5.6-beta7
Additional context
It seems already on TODO but I'll post it anyway. When the block hardness is -1
, the damage factor should changed to much higher value like 100
and don't destroy the block
EntityDriveable.java
line 1334
// Attack the part
if(!attackPart(p.part, DamageSource.IN_WALL,
blockHardness * blockHardness * (float)speed) && TeamsManager.driveablesBreakBlocks) {
// And if it didn't die from the attack, break the block
// TODO: [1.12] Heck
// playAuxSFXAtEntity(null, 2001, pos, Block.getStateId(state));
if(!world.isRemote){
WorldServer worldServer = (WorldServer)world;
destroyBlock(worldServer, pos, getDriver(), true);
}
}