Deprecated DoubleOverlayFloor

This commit is contained in:
Anuken 2021-09-04 16:29:14 -04:00
parent 0a5b1d1380
commit 23d0dfe6bf
2 changed files with 3 additions and 13 deletions

View File

@ -442,7 +442,7 @@ public class Blocks implements ContentList{
Seq.with(metalFloor, metalFloorDamaged, metalFloor2, metalFloor3, metalFloor4, metalFloor5, darkPanel1, darkPanel2, darkPanel3, darkPanel4, darkPanel5, darkPanel6)
.each(b -> b.asFloor().wall = darkMetal);
pebbles = new DoubleOverlayFloor("pebbles");
pebbles = new OverlayFloor("pebbles");
tendrils = new OverlayFloor("tendrils");

View File

@ -1,20 +1,10 @@
package mindustry.world.blocks.environment;
import arc.graphics.g2d.*;
import arc.math.*;
import mindustry.world.*;
/** @deprecated pointless, just use your own sprite instead */
@Deprecated
public class DoubleOverlayFloor extends OverlayFloor{
public DoubleOverlayFloor(String name){
super(name);
}
@Override
public void drawBase(Tile tile){
Draw.colorl(0.4f);
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy() - 0.75f);
Draw.color();
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy());
}
}