Fix #465 crash after closing catalogue and opening another item gui

This commit is contained in:
mezz committed 2015-01-19 11:34:18 -08:00
1 parent f832025f6d
commit dc1449855e
2 files changed
+3 -3

No files matched your search

@@ -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();
}