5859606162636465666768
switch(type) { case CHAT_SCREEN: toOpen = new GuiChat(); break; case SLEEP_SCREEN: toOpen = new GuiSleepMP(); break; case PLAYER_INVENTORY: toOpen = new GuiInventory(SpoutClient.getHandle().thePlayer); break; case INGAME_MENU:
15981599160016011602160316041605160616071608
{ displayGuiScreen(null); } else if (thePlayer.isPlayerSleeping() && theWorld != null && theWorld.isRemote) { displayGuiScreen(new GuiSleepMP()); } } else if (currentScreen != null && (currentScreen instanceof GuiSleepMP) && !thePlayer.isPlayerSleeping()) { displayGuiScreen(null);