From 90d589939a541a912d02bac6f599bd53ab1d839f Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 12 Oct 2021 14:15:28 -0400 Subject: [PATCH] PR cleanup --- core/src/mindustry/content/Fx.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/content/Fx.java b/core/src/mindustry/content/Fx.java index 44f77cb679..f393f731ec 100644 --- a/core/src/mindustry/content/Fx.java +++ b/core/src/mindustry/content/Fx.java @@ -29,10 +29,8 @@ public class Fx{ none = new Effect(0, 0f, e -> {}), blockCrash = new Effect(100f, e -> { - Block block = (Block)e.data; - if(block == null){ - return; - } + if(!(e.data instanceof Block block)) return; + alpha(e.fin() + 0.5f); float offset = Mathf.lerp(0f, 200f, e.fout()); color(0f, 0f, 0f, 0.44f);