Skip to content

Commit

Permalink
no longer need to call this
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 10, 2025
1 parent f2fe4fe commit 9c6e901
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ protected void addWarningText(List<ITextComponent> textList) {
protected MultiblockUIFactory createUIFactory() {
DoubleSyncValue progress = new DoubleSyncValue(recipeMapWorkable::getProgressPercent, null);
IntSyncValue tier = new IntSyncValue(() -> GTUtility.getTierByVoltage(recipeMapWorkable.getMaxVoltage()), null);
tier.updateCacheFromSource(true);
return new MultiblockUIFactory(this)
.syncValue("progress", progress)
.syncValue("tier", tier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ protected void addDisplayText(List<ITextComponent> textList) {
protected MultiblockUIFactory createUIFactory() {
DoubleSyncValue progress = new DoubleSyncValue(recipeMapWorkable::getProgressPercent, null);
IntSyncValue temp = new IntSyncValue(this::getCurrentTemperature, null);
temp.updateCacheFromSource(true);
IntSyncValue tier = new IntSyncValue(() -> GTUtility.getTierByVoltage(recipeMapWorkable.getMaxVoltage()), null);
tier.updateCacheFromSource(true);

return new MultiblockUIFactory(this)
.syncValue("progress", progress)
.syncValue("temp", temp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ protected void addDisplayText(List<ITextComponent> textList) {
protected MultiblockUIFactory createUIFactory() {
DoubleSyncValue progress = new DoubleSyncValue(recipeMapWorkable::getProgressPercent, null);
IntSyncValue tier = new IntSyncValue(() -> GTUtility.getTierByVoltage(recipeMapWorkable.getMaxVoltage()), null);
tier.updateCacheFromSource(true);
IntSyncValue discount = new IntSyncValue(() -> heatingCoilDiscount, null);
IntSyncValue parallel = new IntSyncValue(() -> getRecipeMapWorkable().getParallelLimit(), null);
return new MultiblockUIFactory(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ private TextFormatting getSpeedColor(int speed) {
protected MultiblockUIFactory createUIFactory() {
DoubleSyncValue progress = new DoubleSyncValue(recipeMapWorkable::getProgressPercent, null);
IntSyncValue tier = new IntSyncValue(() -> GTUtility.getTierByVoltage(recipeMapWorkable.getMaxVoltage()), null);
tier.updateCacheFromSource(true);
IntSyncValue coil = new IntSyncValue(() -> coilTier, null);
return new MultiblockUIFactory(this)
.syncValue("progress", progress)
Expand Down

0 comments on commit 9c6e901

Please sign in to comment.