buttonList.add(buttonRight);
buttonList.add(buttonMode);
String temp = textFieldAmount == null ? "" : textFieldAmount.getText();
textFieldAmount = new GuiTextField(0, fontRendererObj, guiLeft + 39, guiTop + 8, 75, 18);
textFieldAmount.setText(temp);
<BUG>textFieldAmount.setMaxStringLength(10);
updateGuiFromItem();
}</BUG>
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {

buttonList.add(buttonRight);
buttonList.add(buttonMode);
String temp = textFieldAmount == null ? "" : textFieldAmount.getText();
textFieldAmount = new GuiTextField(0, fontRendererObj, guiLeft + 39, guiTop + 8, 75, 18);
textFieldAmount.setText(temp);
textFieldAmount.setMaxStringLength(10);
if (!initialized) {
updateGuiFromItem();
initialized = true;
}
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
