From d9d247f9f77487054870dfb278edacba83dc15f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Skrz=C4=99tnicki?= Date: Sat, 30 Dec 2017 22:03:01 +0100 Subject: [PATCH] Omnidrill will report unproductive base surface In contrast with one-resource drill, the omnidrill is not reporting it has been placed on unproductive base surface (i.e. water, grass, sand, lava etc.). This change fixes this issue. --- .../io/anuke/mindustry/world/blocks/ProductionBlocks.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java b/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java index 90f5707602..9661edaa13 100644 --- a/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java +++ b/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java @@ -164,6 +164,11 @@ public class ProductionBlocks{ tryDump(tile); } } + + @Override + public boolean isLayer(Tile tile){ + return tile.floor().drops == null; + } }, coalgenerator = new ItemPowerGenerator("coalgenerator"){ {