Skip to content

Commit

Permalink
s/dampingWhenWaiting/regressWhenWaiting/
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince committed Jan 12, 2025
1 parent 4f00b96 commit 60e7a5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class MachineDefinition implements Supplier<IMachineBlock> {
private Consumer<IRecipeLogicMachine> afterWorking = (machine) -> {};
@Getter
@Setter
private boolean dampingWhenWaiting = true;
private boolean regressWhenWaiting = true;

@Getter
@Setter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ default void afterWorking() {
* Whether progress decrease when machine is waiting for pertick ingredients. (e.g. lack of EU)
*/
default boolean dampingWhenWaiting() {
return self().getDefinition().isDampingWhenWaiting();
return self().getDefinition().isRegressWhenWaiting();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class MachineBuilder<DEFINITION extends MachineDefinition> extends Builde
private Consumer<IRecipeLogicMachine> afterWorking = (machine) -> {};
@Getter
@Setter
private boolean dampingWhenWaiting = true;
private boolean regressWhenWaiting = true;

@Setter
private Supplier<BlockState> appearance;
Expand Down Expand Up @@ -368,7 +368,7 @@ public DEFINITION register() {
definition.setOnWorking(this.onWorking);
definition.setOnWaiting(this.onWaiting);
definition.setAfterWorking(this.afterWorking);
definition.setDampingWhenWaiting(this.dampingWhenWaiting);
definition.setRegressWhenWaiting(this.regressWhenWaiting);

if (renderer == null) {
renderer = () -> new MachineRenderer(new ResourceLocation(registrate.getModid(), "block/machine/" + name));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ public MultiblockMachineBuilder afterWorking(Consumer<IRecipeLogicMachine> after
}

@Override
public MultiblockMachineBuilder dampingWhenWaiting(boolean dampingWhenWaiting) {
return (MultiblockMachineBuilder) super.dampingWhenWaiting(dampingWhenWaiting);
public MultiblockMachineBuilder regressWhenWaiting(boolean dampingWhenWaiting) {
return (MultiblockMachineBuilder) super.regressWhenWaiting(dampingWhenWaiting);
}

@Override
Expand Down

0 comments on commit 60e7a5b

Please sign in to comment.