mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Update Router.java (#643)
This commit is contained in:
parent
06e6deae42
commit
aa5152ac70
@ -61,7 +61,7 @@ public class Router extends Block{
|
||||
int counter = tile.rotation();
|
||||
for(int i = 0; i < proximity.size; i++){
|
||||
Tile other = proximity.get((i + counter) % proximity.size);
|
||||
if(tile == from) continue;
|
||||
if(other == from) continue;
|
||||
if(set) tile.rotation((byte)((tile.rotation() + 1) % proximity.size));
|
||||
if(other.block().acceptItem(item, other, Edges.getFacingEdge(tile, other))){
|
||||
return other;
|
||||
|
Loading…
Reference in New Issue
Block a user