Skip to content

Commit

Permalink
Fixed compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Aug 22, 2024
1 parent c9f2d21 commit 6d6eb5e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public SoulLaserBaseBlockEntity(BlockPos blockPos, BlockState blockState) {
super(IndustrialForegoingSouls.SOUL_LASER_BLOCK, blockPos, blockState);
this.soulAmount = 0;
setShowEnergy(false);
this.addProgressBar(work = new ProgressBarComponent<SoulLaserBaseBlockEntity>(74, 24 + 18, 0, ConfigSoulLaserBase.MAX_PROGRESS) {
this.addProgressBar(this.work = new ProgressBarComponent<SoulLaserBaseBlockEntity>(74, 24 + 18, 0, ConfigSoulLaserBase.MAX_PROGRESS) {
@Override
@OnlyIn(Dist.CLIENT)
public List<IFactory<? extends IScreenAddon>> getScreenAddons() {
Expand All @@ -76,8 +76,7 @@ public List<Component> getTooltipLines() {
.setProgressIncrease(0)
.setCanReset(oreLaserBaseTile -> true)
.setOnStart(() -> {
int maxProgress = (int) Math.floor(ConfigSoulLaserBase.MAX_PROGRESS * (this.hasAugmentInstalled(AugmentTypes.EFFICIENCY) ? AugmentWrapper.getType(this.getInstalledAugments(AugmentTypes.EFFICIENCY).get(0), AugmentTypes.EFFICIENCY) : 1));
work.setMaxProgress(maxProgress);

})
.setOnFinishWork(this::onWork)
);
Expand Down Expand Up @@ -116,6 +115,8 @@ private void onWork() {
}
}
}
int maxProgress = (int) Math.floor(ConfigSoulLaserBase.MAX_PROGRESS * (this.hasAugmentInstalled(AugmentTypes.EFFICIENCY) ? AugmentWrapper.getType(this.getInstalledAugments(AugmentTypes.EFFICIENCY).get(0), AugmentTypes.EFFICIENCY) : 1));
this.work.setMaxProgress(maxProgress);
}

@Override
Expand Down

0 comments on commit 6d6eb5e

Please sign in to comment.