Make schematics build insulated blocks first, power nodes last (#4414)

* Make schematics build insulated blocks first, power nodes last

* Add schematicPriority property to sort by

* Assign schematicPriority of 10 to power diode
This commit is contained in:
Joshua Fan
2021-01-23 07:28:26 -08:00
committed by GitHub
parent 792fdef95d
commit 8ca08a0f14
5 changed files with 6 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ public class PowerDiode extends Block{
insulated = true;
group = BlockGroup.power;
noUpdateDisabled = true;
schematicPriority = 10;
}
@Override

View File

@@ -43,6 +43,7 @@ public class PowerNode extends PowerBlock{
outputsPower = false;
canOverdrive = false;
swapDiagonalPlacement = true;
schematicPriority = -10;
drawDisabled = false;
config(Integer.class, (entity, value) -> {