Fix separated login/announce handler
This commit is contained in:
parent
bc3fa299ef
commit
96ff4ce8e3
3 changed files with 8 additions and 3 deletions
Binary file not shown.
|
@ -10,6 +10,8 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import cpw.mods.fml.server.FMLServerHandler;
|
||||
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.src.*;
|
||||
import net.minecraft.src.forge.packets.*;
|
||||
|
@ -158,5 +160,6 @@ public class PacketHandlerServer implements IPacketHandler
|
|||
}
|
||||
|
||||
player.func_20057_k();
|
||||
FMLServerHandler.instance().announceLogin(player);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,13 +36,15 @@
|
|||
var5.sendPacket(new Packet4UpdateTime(var3.getWorldTime()));
|
||||
Iterator var6 = var2.getActivePotionEffects().iterator();
|
||||
|
||||
@@ -166,7 +173,8 @@
|
||||
@@ -166,9 +173,10 @@
|
||||
}
|
||||
|
||||
var2.func_20057_k();
|
||||
-
|
||||
+ */
|
||||
+ ForgeHooksServer.handleLoginPacket(par1Packet1Login, var5, netManager);
|
||||
FMLServerHandler.instance().handleLogin(par1Packet1Login, netManager, var2);
|
||||
|
||||
FMLServerHandler.instance().handleLogin(par1Packet1Login, netManager);
|
||||
- FMLServerHandler.instance().announceLogin(var2);
|
||||
}
|
||||
|
||||
this.finishedProcessing = true;
|
||||
|
|
Loading…
Reference in a new issue