Update Router.java (#643)

This commit is contained in:
Ulysses2 2019-09-08 09:31:49 -04:00 committed by Anuken
parent 06e6deae42
commit aa5152ac70

View File

@ -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;