mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Re-enabled junction chaining
This commit is contained in:
parent
61dbd33f51
commit
af29eb8c96
@ -67,7 +67,8 @@ public class ProductionBlocks{
|
||||
int dir = source.relativeTo(tile.x, tile.y);
|
||||
dir = (dir+4)%4;
|
||||
Tile to = tile.getNearby()[dir];
|
||||
Timers.run(10, ()->{
|
||||
|
||||
Timers.run(15, ()->{
|
||||
if(to == null || to.entity == null) return;
|
||||
to.block().handleItem(to, item, tile);
|
||||
});
|
||||
@ -79,7 +80,8 @@ public class ProductionBlocks{
|
||||
int dir = source.relativeTo(dest.x, dest.y);
|
||||
dir = (dir+4)%4;
|
||||
Tile to = dest.getNearby()[dir];
|
||||
return to != null && to.block() != junction && to.block().accept(item, to, dest);
|
||||
//uncomment the junction bit to disable giving items to other junctions
|
||||
return to != null /*&& to.block() != junction*/ && to.block().accept(item, to, dest);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -33,7 +33,7 @@ public class Turret extends Block{
|
||||
protected int ammoMultiplier = 20;
|
||||
protected int maxammo = 400;
|
||||
protected float rotatespeed = 0.2f;
|
||||
protected float shootCone = 8f;
|
||||
protected float shootCone = 2f;
|
||||
|
||||
public Turret(String name) {
|
||||
super(name);
|
||||
|
Loading…
Reference in New Issue
Block a user