mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Duct bridge crash fix
This commit is contained in:
parent
c5a90759e5
commit
90c2473448
@ -211,7 +211,7 @@ public class DuctBridge extends Block{
|
||||
public DuctBridgeBuild findLink(){
|
||||
for(int i = 1; i <= range; i++){
|
||||
Tile other = tile.nearby(Geometry.d4x(rotation) * i, Geometry.d4y(rotation) * i);
|
||||
if(other.build instanceof DuctBridgeBuild build && build.team == team){
|
||||
if(other != null && other.build instanceof DuctBridgeBuild build && build.team == team){
|
||||
return build;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user