From de483990ef9a7d6c4028d2b18d0a9485121f9ee5 Mon Sep 17 00:00:00 2001 From: Leonwang4234 <62972692+Leonwang4234@users.noreply.github.com> Date: Fri, 30 Oct 2020 09:04:44 -0700 Subject: [PATCH] formatting Why do I always make these mistakes? And I saw that I did the same thing in my incendiary-fire PR too... --- core/src/mindustry/entities/Lightning.java | 4 ++-- core/src/mindustry/entities/bullet/BulletType.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/entities/Lightning.java b/core/src/mindustry/entities/Lightning.java index 300c151ef1..9cb650aa8f 100644 --- a/core/src/mindustry/entities/Lightning.java +++ b/core/src/mindustry/entities/Lightning.java @@ -37,9 +37,9 @@ public class Lightning{ hit.clear(); BulletType bulletType; - if(hitter != null && hitter.type.lightningHitter != null) { + if(hitter != null && hitter.type.lightningHitter != null){ bulletType = hitter.type.lightningHitter; - } else { + }else{ bulletType = hitter != null && !hitter.type.collidesAir ? Bullets.damageLightningGround : Bullets.damageLightning; } diff --git a/core/src/mindustry/entities/bullet/BulletType.java b/core/src/mindustry/entities/bullet/BulletType.java index 85bf80f7f5..340ae14153 100644 --- a/core/src/mindustry/entities/bullet/BulletType.java +++ b/core/src/mindustry/entities/bullet/BulletType.java @@ -158,14 +158,14 @@ public abstract class BulletType extends Content{ } public void hitTile(Bullet b, Building tile, float initialHealth){ - if(status == StatusEffects.burning) { + if(status == StatusEffects.burning){ Fires.create(tile.tile); } if(healPercent > 0f && tile.team == b.team && !(tile.block instanceof ConstructBlock)){ Fx.healBlockFull.at(tile.x, tile.y, tile.block.size, Pal.heal); tile.heal(healPercent / 100f * tile.maxHealth()); - } else { + }else{ hit(b); } }