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

@@ -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};
}
}