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:
Patrick 'Quezler' Mounier 2020-12-20 20:22:14 +01:00 committed by GitHub
parent 118ae8e87d
commit bbdcef62e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();