Forestry

Forestry

65M Downloads

Mail Catalogue buttons seem broken

temp1011 opened this issue ยท 1 comments

commented

public GuiCatalogue(EntityPlayer player) {
super(new ResourceLocation("textures/gui/book.png"), new ContainerCatalogue(player));
this.xSize = 192;
this.ySize = 192;
buttonFilter = new GuiButton(4, width / 2 - 44, guiTop + 150, 42, 20, Translator.translateToLocal("for.gui.mail.filter.all"));
buttonUse = new GuiButton(5, width / 2, guiTop + 150, 42, 20, Translator.translateToLocal("for.gui.mail.address.copy"));
}
@Override
public void initGui() {
super.initGui();
buttonList.clear();
Keyboard.enableRepeatEvents(true);
buttonList.add(new GuiButton(2, width / 2 + 44, guiTop + 150, 12, 20, ">"));
buttonList.add(new GuiButton(3, width / 2 - 58, guiTop + 150, 12, 20, "<"));
buttonFilter = new GuiButton(4, width / 2 - 44, guiTop + 150, 42, 20, Translator.translateToLocal("for.gui.mail.filter.all"));
buttonList.add(buttonFilter);
buttonUse = new GuiButton(5, width / 2, guiTop + 150, 42, 20, Translator.translateToLocal("for.gui.mail.address.copy"));
buttonList.add(buttonUse);
}

Buttons with id 4 and 5 are set twice. Buttons with id 0,1,2 never registered as far as I can tell.

I think 1.14 might be a good time to consider removing mail system, since it seems to have bitrotted and I don't think many people use it.

commented

There are some very cool things that could be done with the mail system, it just needs some work to sort it out.