mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 23:37:51 +07:00
Removed tank chaining
This commit is contained in:
@ -50,10 +50,10 @@ public class LiquidBlocks extends BlockList implements ContentList{
|
||||
}};
|
||||
|
||||
liquidRouter = new LiquidRouter("liquid-router"){{
|
||||
liquidCapacity = 40f;
|
||||
liquidCapacity = 20f;
|
||||
}};
|
||||
|
||||
liquidtank = new LiquidRouter("liquid-tank"){{
|
||||
liquidtank = new LiquidTank("liquid-tank"){{
|
||||
size = 3;
|
||||
liquidCapacity = 1500f;
|
||||
health = 500;
|
||||
|
@ -203,7 +203,7 @@ public class OverlayRenderer{
|
||||
if(finion > 0.9f) finion = 1f; //fixes precision errors
|
||||
finion = Mathf.clamp(finion);
|
||||
|
||||
if(finion > 0) finion = Mathf.clamp(finion, 0.24f, 1f);
|
||||
if(finion > 0.001f) finion = Mathf.clamp(finion, 0.24f, 1f);
|
||||
|
||||
float len = 3;
|
||||
|
||||
|
@ -0,0 +1,16 @@
|
||||
package io.anuke.mindustry.world.blocks.distribution;
|
||||
|
||||
import io.anuke.mindustry.type.Liquid;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
|
||||
public class LiquidTank extends LiquidRouter{
|
||||
|
||||
public LiquidTank(String name){
|
||||
super(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDumpLiquid(Tile tile, Tile to, Liquid liquid){
|
||||
return super.canDumpLiquid(tile, to, liquid) && !(to.block() instanceof LiquidTank);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user