From bbdcef62e4d430e12f6fa4d442de75fdec1fbc56 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Sun, 20 Dec 2020 20:22:14 +0100 Subject: [PATCH] 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 Co-authored-by: Anuken --- core/src/mindustry/world/blocks/production/Drill.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/mindustry/world/blocks/production/Drill.java b/core/src/mindustry/world/blocks/production/Drill.java index e179d18e0e..9361c22905 100644 --- a/core/src/mindustry/world/blocks/production/Drill.java +++ b/core/src/mindustry/world/blocks/production/Drill.java @@ -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();