Remove redundant else block
@@ -131,11 +131,9 @@ public void commonDefaultDropsHandling(CreateBlockDropsEvent event, EntityRef en
entity.send(new OnBlockToItem(item));
if (shouldDropToWorld(event, block, blockDamageModifierComponent, item)) {
- float impulsePower;
+ float impulsePower = 0;
if (blockDamageModifierComponent != null) {
impulsePower = blockDamageModifierComponent.impulsePower;
- } else {
- impulsePower = 0;
}
processDropping(item, location, impulsePower);
