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:
committed by
GitHub
parent
118ae8e87d
commit
bbdcef62e4
@@ -125,6 +125,12 @@ public class Drill extends Block{
|
|||||||
Draw.rect(returnItem.icon(Cicon.small), dx, dy - 1);
|
Draw.rect(returnItem.icon(Cicon.small), dx, dy - 1);
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
Draw.rect(returnItem.icon(Cicon.small), dx, dy);
|
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{
|
}else{
|
||||||
Tile to = tile.getLinkedTilesAs(this, tempTiles).find(t -> t.drop() != null && t.drop().hardness > tier);
|
Tile to = tile.getLinkedTilesAs(this, tempTiles).find(t -> t.drop() != null && t.drop().hardness > tier);
|
||||||
Item item = to == null ? null : to.drop();
|
Item item = to == null ? null : to.drop();
|
||||||
|
|||||||
Reference in New Issue
Block a user