mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 00:05:23 +07:00
Allow animations without top regions
This commit is contained in:
parent
0e6d9ea933
commit
031b1abe0a
@ -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
|
||||
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user