From ac8c81a0d5dd7b6f27e1d8414f5108688631a66b Mon Sep 17 00:00:00 2001 From: TranquillyUnpleasant <62061444+TranquillyUnpleasant@users.noreply.github.com> Date: Fri, 7 May 2021 17:45:43 +0500 Subject: [PATCH] Allow banned blocks to still be placeable within map editor. (#5212) This makes it so you don't have to pointlessly unban and then re ban blocks while making maps. --- core/src/mindustry/world/Block.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index 8feba42ffb..1d8e1db2a9 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -588,7 +588,7 @@ public class Block extends UnlockableContent{ } public boolean isPlaceable(){ - return isVisible() && !state.rules.bannedBlocks.contains(this); + return isVisible() && (!state.rules.bannedBlocks.contains(this) || state.rules.editor); } /** Called when building of this block begins. */