mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 04:13:44 +07:00
Fix plastanium conveyor linking (#5185)
This commit is contained in:
parent
9e519ab801
commit
7853767ee5
@ -120,3 +120,4 @@ nilq
|
|||||||
AsgerHB
|
AsgerHB
|
||||||
AzCraft
|
AzCraft
|
||||||
foo
|
foo
|
||||||
|
Skat
|
||||||
|
@ -63,6 +63,7 @@ public class StackConveyor extends Block implements Autotiler{
|
|||||||
return otherblock.outputsItems() && lookingAtEither(tile, rotation, otherx, othery, otherrot, otherblock);
|
return otherblock.outputsItems() && lookingAtEither(tile, rotation, otherx, othery, otherrot, otherblock);
|
||||||
}else if(state == stateUnload){ //router mode
|
}else if(state == stateUnload){ //router mode
|
||||||
return otherblock.acceptsItems &&
|
return otherblock.acceptsItems &&
|
||||||
|
(!(otherblock instanceof ArmoredConveyor) || lookingAtEither(tile, rotation, otherx, othery, otherrot, otherblock)) &&
|
||||||
(notLookingAt(tile, rotation, otherx, othery, otherrot, otherblock) ||
|
(notLookingAt(tile, rotation, otherx, othery, otherrot, otherblock) ||
|
||||||
(otherblock instanceof StackConveyor && facing(otherx, othery, otherrot, tile.x, tile.y))) &&
|
(otherblock instanceof StackConveyor && facing(otherx, othery, otherrot, tile.x, tile.y))) &&
|
||||||
!(world.build(otherx, othery) instanceof StackConveyorBuild s && s.state == stateUnload) &&
|
!(world.build(otherx, othery) instanceof StackConveyorBuild s && s.state == stateUnload) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user