Launch only when full
This commit is contained in:
@@ -83,6 +83,8 @@ public class CraterConveyor extends BaseConveyor{
|
|||||||
Effects.effect(Fx.plasticburn, tile.drawx(), tile.drawy());
|
Effects.effect(Fx.plasticburn, tile.drawx(), tile.drawy());
|
||||||
entity.crater = null;
|
entity.crater = null;
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
if(entity.items.total() >= getMaximumAccepted(tile, entity.crater.i) || !Track.start.check.get(tile)){
|
||||||
Tile destination = tile.front();
|
Tile destination = tile.front();
|
||||||
|
|
||||||
if(entity.crater.dst(tile) < 1.25f){
|
if(entity.crater.dst(tile) < 1.25f){
|
||||||
@@ -108,6 +110,7 @@ public class CraterConveyor extends BaseConveyor{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(entity.crater != null){
|
if(entity.crater != null){
|
||||||
entity.crater.x = Mathf.lerpDelta(entity.crater.x, tile.drawx(), 0.075f);
|
entity.crater.x = Mathf.lerpDelta(entity.crater.x, tile.drawx(), 0.075f);
|
||||||
@@ -171,6 +174,11 @@ public class CraterConveyor extends BaseConveyor{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaximumAccepted(Tile tile, Item item){
|
||||||
|
return Mathf.round(super.getMaximumAccepted(tile, item) * tile.entity.timeScale);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean blendsArmored(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock){ // only connect to compressable blocks
|
public boolean blendsArmored(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock){ // only connect to compressable blocks
|
||||||
return super.blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock) && otherblock.compressable;
|
return super.blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock) && otherblock.compressable;
|
||||||
|
|||||||
Reference in New Issue
Block a user