mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-09 10:18:40 +07:00
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.
This commit is contained in:
parent
5f7e2d97ef
commit
ac8c81a0d5
@ -588,7 +588,7 @@ public class Block extends UnlockableContent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlaceable(){
|
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. */
|
/** Called when building of this block begins. */
|
||||||
|
Loading…
Reference in New Issue
Block a user