Skip to content

Commit

Permalink
Fix Void Cell formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Oct 19, 2023
1 parent 2704c93 commit d1e2f4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.text.NumberFormat;
import java.util.List;

public abstract class BaseStorageCellVoid<T extends IAEStack<T>> extends AEBaseItem implements ICellWorkbenchItem {
private static final NumberFormat decimalFormat = NumberFormat.getInstance();

public BaseStorageCellVoid() {
this.setMaxStackSize(1);
}
Expand Down Expand Up @@ -93,7 +96,8 @@ protected void addCheckedInformation(ItemStack stack, World world, List<String>
var compound = stack.getTagCompound();
if (compound != null) {
lines.add("");
lines.add(I18n.format("nae2.storage_cell_void.count", this.getCondenserPower(stack),
lines.add(I18n.format("nae2.storage_cell_void.count",
decimalFormat.format(this.getCondenserPower(stack)),
GuiText.Condenser.getLocal()));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/nae2/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nae2.part.beam_former.show=Showing beam.

nae2.storage_cell_void.warning.1=Voids EVERYTHING!
nae2.storage_cell_void.warning.2=Configure in %s unless you know what you're doing.
nae2.storage_cell_void.count=%d %s power stored.
nae2.storage_cell_void.count=%s %s power stored.

nae2.material.cell_void_part.name=ME Void Storage Component

Expand Down

0 comments on commit d1e2f4b

Please sign in to comment.