mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-10-26 14:24:25 +00:00
Fix gui crop and localize Inventory title (#61)
This commit is contained in:
1 parent
d571f64b14
commit
59aa1ce79c
2 files changed
+5
-3
No files matched your search
@@ -3,6 +3,7 @@ package magicbees.client.gui;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@@ -36,7 +37,7 @@ public class GUIEffectJar extends GuiContainer {
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
||||
fontRendererObj.drawString("Inventory", 9, 63, 0);
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 63, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4,6 +4,7 @@ import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@@ -20,7 +21,7 @@ public class GuiMagicApiary extends GuiContainer {
|
||||
CommonProxy.GUI_TEXTURE + "apiary.png");
|
||||
|
||||
private static final int WIDTH = 176;
|
||||
private static final int HEIGHT = 190;
|
||||
private static final int HEIGHT = 192;
|
||||
|
||||
private static final int LIFEBAR_WIDTH = 2;
|
||||
private static final int LIFEBAR_HEIGHT = 46;
|
||||
@@ -67,7 +68,7 @@ public class GuiMagicApiary extends GuiContainer {
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
||||
fontRendererObj.drawString("Inventory", 9, 99, 0);
|
||||
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 99, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user