From 4e7ddc7e71b6c56661a67598b64b0ceccf904989 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 5 Jul 2019 14:39:45 -0400 Subject: [PATCH] Fill tool fix --- core/src/io/anuke/mindustry/editor/EditorTool.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/io/anuke/mindustry/editor/EditorTool.java b/core/src/io/anuke/mindustry/editor/EditorTool.java index 97447f43a9..abc89b19df 100644 --- a/core/src/io/anuke/mindustry/editor/EditorTool.java +++ b/core/src/io/anuke/mindustry/editor/EditorTool.java @@ -9,6 +9,7 @@ import io.anuke.mindustry.Vars; import io.anuke.mindustry.content.Blocks; import io.anuke.mindustry.game.Team; import io.anuke.mindustry.world.*; +import io.anuke.mindustry.world.blocks.BlockPart; public enum EditorTool{ zoom, @@ -107,6 +108,11 @@ public enum EditorTool{ //mode 0 or 1, fill everything with the floor/tile or replace it if(mode == 0 || mode == -1){ + //can't fill parts or multiblocks + if(tile.block() instanceof BlockPart || tile.block().isMultiblock()){ + return; + } + Predicate tester; Consumer setter;