mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 19:09:34 +07:00
Fixed #7710
This commit is contained in:
parent
ad76a90683
commit
2e684863d5
@ -828,6 +828,10 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
return generatedIcons == null ? (generatedIcons = icons()) : generatedIcons;
|
||||
}
|
||||
|
||||
public void resetGeneratedIcons(){
|
||||
generatedIcons = null;
|
||||
}
|
||||
|
||||
public TextureRegion[] variantRegions(){
|
||||
return variantRegions == null ? (variantRegions = new TextureRegion[]{fullIcon}) : variantRegions;
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ public class DrawTurret extends DrawBlock{
|
||||
if(block.region.found() && !(block.outlinedIcon > 0 && block.getGeneratedIcons()[block.outlinedIcon].equals(block.region))){
|
||||
out.add(block.region);
|
||||
}
|
||||
|
||||
block.resetGeneratedIcons();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user