mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Fixed #9257
This commit is contained in:
@ -418,14 +418,21 @@ public class ItemBridge extends Block{
|
||||
checkAccept(source, world.tile(link));
|
||||
}
|
||||
|
||||
protected boolean checkAccept(Building source, Tile other){
|
||||
protected boolean checkAccept(Building source, Tile link){
|
||||
if(tile == null || linked(source)) return true;
|
||||
|
||||
if(linkValid(tile, other)){
|
||||
int rel = relativeTo(other);
|
||||
if(linkValid(tile, link)){
|
||||
int rel = relativeTo(link);
|
||||
var facing = Edges.getFacingEdge(source, this);
|
||||
int rel2 = facing == null ? -1 : relativeTo(facing);
|
||||
|
||||
for(int j = 0; j < incoming.size; j++){
|
||||
int v = incoming.items[j];
|
||||
if(relativeTo(Point2.x(v), Point2.y(v)) == rel2){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return rel != rel2;
|
||||
}
|
||||
|
||||
|
@ -25,4 +25,4 @@ org.gradle.caching=true
|
||||
#used for slow jitpack builds; TODO see if this actually works
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
archash=1906938dea
|
||||
archash=e2fdbab477
|
||||
|
Reference in New Issue
Block a user