Skip to content

Commit

Permalink
use boolean
Browse files Browse the repository at this point in the history
probably not smart to check config every tick lel
  • Loading branch information
maggi373 committed May 17, 2024
1 parent 68be3bc commit a73fbac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/mekanism/common/tile/TileEntityFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
public boolean sorting;

public boolean upgraded;
public boolean NewSortAlgo = MekanismConfig.current().mekce.EnableNewSortAlgorithm.val();

public double lastUsage;

Expand Down Expand Up @@ -242,7 +243,7 @@ public void onUpdate() {
ChargeUtils.discharge(1, this);

handleSecondaryFuel();
if (MekanismConfig.current().mekce.EnableNewSortAlgorithm.val()) {
if (NewSortAlgo) {
inventorySorter.sort();
} else {
sortInventory();
Expand Down

0 comments on commit a73fbac

Please sign in to comment.