Added armored conduit / Lighting improvements / Moved liquid package

This commit is contained in:
Anuken
2019-11-17 13:51:36 -05:00
37 changed files with 3216 additions and 2988 deletions
@@ -237,6 +237,12 @@ public class Puddle extends SolidEntity implements SaveTrait, Poolable, DrawTrai
seeds++;
});
Draw.color();
if(liquid.lightColor.a > 0.001f && f > 0){
Color color = liquid.lightColor;
float opacity = color.a * f;
renderer.lights.add(tile.drawx(), tile.drawy(), 30f * f, color, opacity * 0.8f);
}
}
@Override
@@ -311,13 +311,17 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
loops.play(block.idleSound, this, block.idleSoundVolume);
}
Block previous = block;
block.update(tile);
if(block == previous && cons != null){
if(liquids != null){
liquids.update();
}
if(cons != null){
cons.update();
}
if(block == previous && power != null){
if(power != null){
power.graph.update();
}
}