dslake / WorldDownloader

Clones a Minecraft multiplayer world from a remote server to your singleplayer folder
http://www.minecraftforum.net/topic/1444862-
62 stars 19 forks source link

Open To LAN button in singleplayer acts like "Download this world" button #3

Closed dslake closed 12 years ago

dslake commented 12 years ago

Pressing the "Open to Lan" button in a single player map seems to activate the World Downloader "Download this world" function.

dslake commented 12 years ago

The problem is caused by a fallthrough from case7 to case 50 in the GuiIngameMenu.java function actionperformed. Fixed by adding a break before case 50.

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
        /*WDL>>>*/
        case 50:
            if( WDL.downloading == true )
                WDL.stop();
            else
                WDL.start();

            mc.displayGuiScreen(null);
            mc.setIngameFocus();
            break;

        case 51:
             mc.displayGuiScreen( new GuiWDL( this ) );
             break;
        /*<<<WDL*/