mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-16 06:12:19 -08:00
Made splitter faster when unchained
This commit is contained in:
parent
58be055f57
commit
ee5e655668
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import io.anuke.mindustry.world.meta.BlockGroup;
|
|||
import io.anuke.ucore.core.Timers;
|
||||
|
||||
public class Splitter extends Block{
|
||||
protected float speed = 7f;
|
||||
protected float speed = 8f;
|
||||
|
||||
public Splitter(String name){
|
||||
super(name);
|
||||
|
|
@ -36,7 +36,7 @@ public class Splitter extends Block{
|
|||
entity.time += 1f/speed * Timers.delta();
|
||||
Tile target = getTileTarget(tile, entity.lastItem, entity.lastInput, false);
|
||||
|
||||
if(target != null && (entity.time >= 1f)){
|
||||
if(target != null && (entity.time >= 1f || !(target.block() instanceof Splitter))){
|
||||
getTileTarget(tile, entity.lastItem, entity.lastInput, true);
|
||||
target.block().handleItem(entity.lastItem, target, Edges.getFacingEdge(tile, target));
|
||||
entity.items.remove(entity.lastItem, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue