Update GuiScreenLANConnecting.java
This commit is contained in:
parent
a1791335b2
commit
f49e79cf42
|
@ -16,6 +16,8 @@ public class GuiScreenLANConnecting extends GuiScreen {
|
|||
|
||||
private boolean completed = false;
|
||||
|
||||
private NetClientHandler netHandler = null;
|
||||
|
||||
public GuiScreenLANConnecting(GuiScreen parent, String code) {
|
||||
this.parent = parent;
|
||||
this.code = code;
|
||||
|
@ -25,6 +27,12 @@ public class GuiScreenLANConnecting extends GuiScreen {
|
|||
return false;
|
||||
}
|
||||
|
||||
public void updateScreen() {
|
||||
if(netHandler != null) {
|
||||
netHandler.processReadPackets();
|
||||
}
|
||||
}
|
||||
|
||||
public void drawScreen(int par1, int par2, float par3) {
|
||||
this.drawDefaultBackground();
|
||||
StringTranslate st = StringTranslate.getInstance();
|
||||
|
@ -53,7 +61,7 @@ public class GuiScreenLANConnecting extends GuiScreen {
|
|||
completed = true;
|
||||
|
||||
try {
|
||||
NetClientHandler netHandler = new NetClientHandler(mc, netMgr);
|
||||
netHandler = new NetClientHandler(mc, netMgr);
|
||||
this.mc.setNetManager(netMgr);
|
||||
netHandler.addToSendQueue(new Packet2ClientProtocol(61, EaglerProfile.username, "127.0.0.1", mc.gameSettings.renderDistance));
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user