62 lines
1.7 KiB
Diff
62 lines
1.7 KiB
Diff
--- ../src-base/common/net/minecraft/src/NetLoginHandler.java
|
|
+++ ../src-work/common/net/minecraft/src/NetLoginHandler.java
|
|
@@ -9,6 +9,8 @@
|
|
import java.util.Random;
|
|
import java.util.logging.Logger;
|
|
import javax.crypto.SecretKey;
|
|
+
|
|
+import cpw.mods.fml.common.network.FMLNetworkHandler;
|
|
import net.minecraft.server.MinecraftServer;
|
|
|
|
public class NetLoginHandler extends NetHandler
|
|
@@ -39,7 +41,7 @@
|
|
this.func_72529_d();
|
|
}
|
|
|
|
- if (this.field_72535_g++ == 600)
|
|
+ if (this.field_72535_g++ == 6000)
|
|
{
|
|
this.func_72527_a("Took too long to log in");
|
|
}
|
|
@@ -125,12 +127,17 @@
|
|
}
|
|
}
|
|
|
|
- public void func_72455_a(Packet1Login p_72455_1_) {}
|
|
+ public void func_72455_a(Packet1Login p_72455_1_) {
|
|
+ FMLNetworkHandler.handleLoginPacketOnServer(this, p_72455_1_);
|
|
+ }
|
|
|
|
public void func_72529_d()
|
|
{
|
|
- String var1 = this.field_72534_f.func_71203_ab().func_72399_a(this.field_72538_b.func_74430_c(), this.field_72543_h);
|
|
-
|
|
+ FMLNetworkHandler.onConnectionReceivedFromClient(this, this.field_72534_f, this.field_72538_b.func_74430_c(), this.field_72543_h);
|
|
+ }
|
|
+
|
|
+ public void completeConnection(String var1)
|
|
+ {
|
|
if (var1 != null)
|
|
{
|
|
this.func_72527_a(var1);
|
|
@@ -221,4 +228,20 @@
|
|
{
|
|
return p_72531_0_.field_72544_i = p_72531_1_;
|
|
}
|
|
+
|
|
+ public void func_72501_a(Packet250CustomPayload p_72501_1_)
|
|
+ {
|
|
+ FMLNetworkHandler.handlePacket250Packet(p_72501_1_, field_72538_b, this);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void handleVanilla250Packet(Packet250CustomPayload payload)
|
|
+ {
|
|
+ // NOOP for login
|
|
+ }
|
|
+
|
|
+ public EntityPlayer getPlayer()
|
|
+ {
|
|
+ return null;
|
|
+ };
|
|
}
|