Remove redundant cast (#6193)

* Remove redundant cast

* dumb
This commit is contained in:
buthed010203
2021-10-18 21:57:05 -04:00
committed by GitHub
parent f2ce32cbb2
commit 52238e3aa4

View File

@@ -176,7 +176,7 @@ public class GameService{
}); });
Events.on(UnitControlEvent.class, e -> { 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(); becomeRouter.complete();
} }
}); });