remove block resistance
This commit is contained in:
parent
f61b8041ad
commit
9f9a2e9399
8 changed files with 47 additions and 67 deletions
|
@ -939,7 +939,7 @@ public final class WorldServer extends AWorldServer {
|
|||
private boolean destroyBlock(LocalPos pos, float power, EntityLiving source) {
|
||||
State state = this.getState(pos);
|
||||
Block block = state.getBlock();
|
||||
if(block != Blocks.air && (block.getMaterial().isLiquid() || power - (block.getResistance() / 5.0F + 0.3F) * 0.3F > 0.0F)) {
|
||||
if(block != Blocks.air && (block.getMaterial().isLiquid() || power - (block.getRawHardness() + 0.3F) * 0.3F > 0.0F)) {
|
||||
if(block.canExplosionDrop() && this.rand.floatv() <= 1.0F / (power * power))
|
||||
block.drop(this, pos, state, 0);
|
||||
this.setState(pos, Blocks.air.getState(), 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue