mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fccf6847c1
@ -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…
Reference in New Issue
Block a user