From 52238e3aa48352ebb0ad8116247f8e68f9f29f3e Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Mon, 18 Oct 2021 21:57:05 -0400 Subject: [PATCH] Remove redundant cast (#6193) * Remove redundant cast * dumb --- core/src/mindustry/service/GameService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/service/GameService.java b/core/src/mindustry/service/GameService.java index a3890b6fc6..76c647c250 100644 --- a/core/src/mindustry/service/GameService.java +++ b/core/src/mindustry/service/GameService.java @@ -176,7 +176,7 @@ public class GameService{ }); Events.on(UnitControlEvent.class, e -> { - if(e.unit instanceof BlockUnitc && ((BlockUnitc)e.unit).tile().block == Blocks.router){ + if(e.unit instanceof BlockUnitc unit && unit.tile().block == Blocks.router){ becomeRouter.complete(); } });