Skip to content

Commit

Permalink
Fix steam multiblock args (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Nov 13, 2024
1 parent 473a321 commit d4f1820
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ public class SteamParallelMultiblockMachine extends WorkableMultiblockMachine im
public static final double CONVERSION_RATE = 0.5D;

public SteamParallelMultiblockMachine(IMachineBlockEntity holder, Object... args) {
this(holder, ConfigHolder.INSTANCE.machines.steamMultiParallelAmount, args);
}

public SteamParallelMultiblockMachine(IMachineBlockEntity holder, int parallelAmount, Object... args) {
super(holder, args);
maxParallels = parallelAmount;
super(holder);
if (args.length > 0 && args[0] instanceof Integer i) {
this.maxParallels = i;
}
}

@Override
Expand Down

0 comments on commit d4f1820

Please sign in to comment.