Merge remote-tracking branch 'origin/1.20.4' into 1.20.4

This commit is contained in:
Flanks255 2024-03-10 17:16:28 -05:00
commit be1bb6632a
2 changed files with 3 additions and 2 deletions

View file

@ -67,7 +67,7 @@ public class GuiFireworkBox extends AbstractContainerScreen<ContainerFireworkBox
@Override @Override
protected void renderLabels(GuiGraphics guiGraphics, int pMouseX, int pMouseY) { protected void renderLabels(GuiGraphics guiGraphics, int pMouseX, int pMouseY) {
AssetUtil.displayNameString(guiGraphics, this.font, this.getXSize(), -10, I18n.get("container." + ActuallyAdditions.MODID + ".fireworkBox")); guiGraphics.drawString(font, this.title, (int)(this.getXSize() / 2f - font.width(this.title) / 2f), -10, 0xFFFFFF, false);
} }
@Override @Override

View file

@ -10,6 +10,7 @@
package de.ellpeck.actuallyadditions.mod.tile; package de.ellpeck.actuallyadditions.mod.tile;
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks; import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks;
import de.ellpeck.actuallyadditions.mod.inventory.ContainerFireworkBox; import de.ellpeck.actuallyadditions.mod.inventory.ContainerFireworkBox;
import de.ellpeck.actuallyadditions.mod.network.gui.INumberReactor; import de.ellpeck.actuallyadditions.mod.network.gui.INumberReactor;
@ -294,7 +295,7 @@ public class TileEntityFireworkBox extends TileEntityBase implements IEnergyDisp
@Override @Override
public Component getDisplayName() { public Component getDisplayName() {
return Component.empty(); return Component.translatable("container.actuallyadditions.fireworkBox");
} }
@Nullable @Nullable