mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Draw item in the drill center when in place mode (#4055)
* Draw item in the drill center when in place mode * Update core/src/mindustry/world/blocks/production/Drill.java Co-authored-by: Patrick 'Quezler' Mounier <Quezler@me.com> Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
parent
118ae8e87d
commit
bbdcef62e4
1 changed files with 6 additions and 0 deletions
|
|
@ -125,6 +125,12 @@ public class Drill extends Block{
|
|||
Draw.rect(returnItem.icon(Cicon.small), dx, dy - 1);
|
||||
Draw.reset();
|
||||
Draw.rect(returnItem.icon(Cicon.small), dx, dy);
|
||||
|
||||
if(drawMineItem){
|
||||
Draw.color(returnItem.color);
|
||||
Draw.rect(itemRegion, tile.worldx() + offset, tile.worldy() + offset);
|
||||
Draw.color();
|
||||
}
|
||||
}else{
|
||||
Tile to = tile.getLinkedTilesAs(this, tempTiles).find(t -> t.drop() != null && t.drop().hardness > tier);
|
||||
Item item = to == null ? null : to.drop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue