mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #465 crash after closing catalogue and opening another item gui
This commit is contained in:
1 parent
f832025f6d
commit
dc1449855e
2 files changed
+3
-3
No files matched your search
@@ -129,7 +129,7 @@ public class GuiCatalogue extends GuiForestry<TileForestry> {
|
||||
protected void actionPerformed(GuiButton button) {
|
||||
switch(button.id) {
|
||||
case 0:
|
||||
mc.displayGuiScreen(null);
|
||||
mc.thePlayer.closeScreen();
|
||||
break;
|
||||
case 2:
|
||||
container.advanceIteration();
|
||||
@@ -146,7 +146,7 @@ public class GuiCatalogue extends GuiForestry<TileForestry> {
|
||||
SessionVars.setStringVar("mail.letter.recipient", info.address.getName());
|
||||
SessionVars.setStringVar("mail.letter.addressee", EnumAddressee.TRADER.toString());
|
||||
}
|
||||
mc.displayGuiScreen(null);
|
||||
mc.thePlayer.closeScreen();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ public class GuiTradeName extends GuiForestry<MachineTrader> {
|
||||
protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
|
||||
// Close gui screen if we linked up.
|
||||
if (container.machine.isLinked()) {
|
||||
this.mc.displayGuiScreen(null);
|
||||
this.mc.thePlayer.closeScreen();
|
||||
this.mc.setIngameFocus();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user