Skip to content

Commit

Permalink
heheheh
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD committed May 9, 2024
1 parent 3dab9fd commit 0cbe4c9
Show file tree
Hide file tree
Showing 3 changed files with 4,258 additions and 1,729 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected void addEnergy(WidgetHolder widgets, OffsetBuilder offsets) {
}

protected void addEnergy(WidgetHolder widgets, int x, int y) {
final int totalEnergy = this.slimefunRecipe.energy() * Math.max(1, this.slimefunRecipe.time() / 10 / this.slimefunRecipeCategory.speed());
final int totalEnergy = this.slimefunRecipe.totalEnergy();
widgets.add(EmiUtils.wrap(TextureUtils.ENERGY, x, y, false));
widgets.addAnimatedTexture(EmiUtils.wrap(totalEnergy >= 0 ? TextureUtils.ENERGY_POSITIVE : TextureUtils.ENERGY_NEGATIVE), x, y, 1000, false, totalEnergy < 0, totalEnergy < 0).tooltip(tooltip("slimefun_essentials.recipes.energy." + (totalEnergy >= 0 ? "generate" : "use"), TextureUtils.numberFormat.format(Math.abs(totalEnergy))));
}
Expand Down
Loading

0 comments on commit 0cbe4c9

Please sign in to comment.