progress
This commit is contained in:
@@ -181,19 +181,18 @@ public class BuildBlock extends Block{
|
||||
}
|
||||
|
||||
Draw.draw(Layer.blockBuilding, () -> {
|
||||
Draw.shader(Shaders.blockbuild);
|
||||
Shaders.blockbuild.color = Pal.accent;
|
||||
|
||||
Block target = cblock == null ? previous : cblock;
|
||||
|
||||
if(target == null) return;
|
||||
if(target != null){
|
||||
for(TextureRegion region : target.getGeneratedIcons()){
|
||||
Shaders.blockbuild.region = region;
|
||||
Shaders.blockbuild.progress = progress;
|
||||
|
||||
for(TextureRegion region : target.getGeneratedIcons()){
|
||||
Shaders.blockbuild.region = region;
|
||||
Shaders.blockbuild.progress = progress;
|
||||
|
||||
Draw.rect(region, x, y, target.rotate ? tile.rotation() * 90 : 0);
|
||||
Draw.flush();
|
||||
Draw.rect(region, x, y, target.rotate ? tile.rotation() * 90 : 0);
|
||||
Draw.flush();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user