1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-19 20:37:28 +03:00

Allow animations without top regions

This commit is contained in:
Anuken 2021-08-13 14:14:58 -04:00
parent 0e6d9ea933
commit 031b1abe0a
2 changed files with 3 additions and 1 deletions

View File

@ -383,6 +383,8 @@ public class Control implements ApplicationListener, Loadable{
Groups.fire.clear();
Groups.puddle.clear();
//reset to 0, so replaced cores don't count
state.rules.defaultTeam.data().unitCap = 0;
Schematics.placeLaunchLoadout(spawn.x, spawn.y);
//set up camera/player locations

View File

@ -45,6 +45,6 @@ public class DrawAnimation extends DrawBlock{
@Override
public TextureRegion[] icons(Block block){
return new TextureRegion[]{block.region, top};
return top.found() ? new TextureRegion[]{block.region, top} : new TextureRegion[]{block.region};
}
}