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:
@@ -145,6 +145,8 @@ public class Block extends UnlockableContent{
|
||||
public boolean conveyorPlacement;
|
||||
/** Whether to swap the diagonal placement modes. */
|
||||
public boolean swapDiagonalPlacement;
|
||||
/** Build queue priority in schematics. */
|
||||
public int schematicPriority = 0;
|
||||
/**
|
||||
* The color of this block when displayed on the minimap or map preview.
|
||||
* Do not set manually! This is overridden when loading for most blocks.
|
||||
|
||||
@@ -22,6 +22,7 @@ public class PowerDiode extends Block{
|
||||
insulated = true;
|
||||
group = BlockGroup.power;
|
||||
noUpdateDisabled = true;
|
||||
schematicPriority = 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -43,6 +43,7 @@ public class PowerNode extends PowerBlock{
|
||||
outputsPower = false;
|
||||
canOverdrive = false;
|
||||
swapDiagonalPlacement = true;
|
||||
schematicPriority = -10;
|
||||
drawDisabled = false;
|
||||
|
||||
config(Integer.class, (entity, value) -> {
|
||||
|
||||
Reference in New Issue
Block a user