passbackback
This commit is contained in:
@@ -2,6 +2,7 @@ package io.anuke.mindustry.world.blocks.distribution;
|
|||||||
|
|
||||||
import io.anuke.arc.collection.Array;
|
import io.anuke.arc.collection.Array;
|
||||||
import io.anuke.arc.util.Time;
|
import io.anuke.arc.util.Time;
|
||||||
|
import io.anuke.mindustry.content.*;
|
||||||
import io.anuke.mindustry.entities.type.TileEntity;
|
import io.anuke.mindustry.entities.type.TileEntity;
|
||||||
import io.anuke.mindustry.type.Item;
|
import io.anuke.mindustry.type.Item;
|
||||||
import io.anuke.mindustry.world.*;
|
import io.anuke.mindustry.world.*;
|
||||||
@@ -63,7 +64,7 @@ public class Router extends Block{
|
|||||||
for(int i = 0; i < proximity.size; i++){
|
for(int i = 0; i < proximity.size; i++){
|
||||||
Tile other = proximity.get((i + counter) % proximity.size);
|
Tile other = proximity.get((i + counter) % proximity.size);
|
||||||
if(set) tile.rotation((byte)((tile.rotation() + 1) % proximity.size));
|
if(set) tile.rotation((byte)((tile.rotation() + 1) % proximity.size));
|
||||||
if(other == from) continue;
|
if(other == from && from.block() == Blocks.overflowGate) continue;
|
||||||
if(other.block().acceptItem(item, other, Edges.getFacingEdge(tile, other))){
|
if(other.block().acceptItem(item, other, Edges.getFacingEdge(tile, other))){
|
||||||
return other;
|
return other;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user