Make hiding details optional (#5871)
* Make hiding details optional * Sandbox blocks shouldn't have their details hidden.
This commit is contained in:
@@ -847,6 +847,10 @@ public class Block extends UnlockableContent{
|
||||
if(!outputsPower && consumes.hasPower() && consumes.getPower().buffered){
|
||||
throw new IllegalArgumentException("Consumer using buffered power: " + name);
|
||||
}
|
||||
|
||||
if(buildVisibility == BuildVisibility.sandboxOnly){
|
||||
hideDetails = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user