mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fccf6847c1
3 changed files with 8 additions and 8 deletions
|
|
@ -44,7 +44,7 @@ public abstract class DrawBlock{
|
|||
|
||||
/** @return the generated icons to be used for this block. */
|
||||
public TextureRegion[] icons(Block block){
|
||||
return new TextureRegion[]{block.region};
|
||||
return new TextureRegion[]{};
|
||||
}
|
||||
|
||||
public final TextureRegion[] finalIcons(Block block){
|
||||
|
|
@ -55,7 +55,8 @@ public abstract class DrawBlock{
|
|||
}
|
||||
return out;
|
||||
}
|
||||
return icons(block);
|
||||
TextureRegion[] icons = icons(block);
|
||||
return icons.length == 0 ? new TextureRegion[]{Core.atlas.find("error")} : icons;
|
||||
}
|
||||
|
||||
public GenericCrafter expectCrafter(Block block){
|
||||
|
|
|
|||
|
|
@ -17,4 +17,9 @@ public class DrawDefault extends DrawBlock{
|
|||
public void drawPlan(Block block, BuildPlan plan, Eachable<BuildPlan> list){
|
||||
block.drawDefaultPlanRegion(plan, list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextureRegion[] icons(Block block){
|
||||
return new TextureRegion[]{block.region};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,10 +53,4 @@ public class DrawLiquidOutputs extends DrawBlock{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
//can't display these properly
|
||||
@Override
|
||||
public TextureRegion[] icons(Block block){
|
||||
return new TextureRegion[]{};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue