Fixed #9257
This commit is contained in:
@@ -418,14 +418,21 @@ public class ItemBridge extends Block{
|
|||||||
checkAccept(source, world.tile(link));
|
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(tile == null || linked(source)) return true;
|
||||||
|
|
||||||
if(linkValid(tile, other)){
|
if(linkValid(tile, link)){
|
||||||
int rel = relativeTo(other);
|
int rel = relativeTo(link);
|
||||||
var facing = Edges.getFacingEdge(source, this);
|
var facing = Edges.getFacingEdge(source, this);
|
||||||
int rel2 = facing == null ? -1 : relativeTo(facing);
|
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;
|
return rel != rel2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,4 +25,4 @@ org.gradle.caching=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
archash=1906938dea
|
archash=e2fdbab477
|
||||||
|
|||||||
Reference in New Issue
Block a user