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:
TranquillyUnpleasant 2021-05-07 17:45:43 +05:00 committed by GitHub
parent 5f7e2d97ef
commit ac8c81a0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. */