Fix separated login/announce handler

This commit is contained in:
Christian Weeks 2012-04-08 00:45:56 -04:00
parent bc3fa299ef
commit 96ff4ce8e3
3 changed files with 8 additions and 3 deletions

View file

@ -10,6 +10,8 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.logging.Level; import java.util.logging.Level;
import cpw.mods.fml.server.FMLServerHandler;
import net.minecraft.server.MinecraftServer; import net.minecraft.server.MinecraftServer;
import net.minecraft.src.*; import net.minecraft.src.*;
import net.minecraft.src.forge.packets.*; import net.minecraft.src.forge.packets.*;
@ -158,5 +160,6 @@ public class PacketHandlerServer implements IPacketHandler
} }
player.func_20057_k(); player.func_20057_k();
FMLServerHandler.instance().announceLogin(player);
} }
} }

View file

@ -36,13 +36,15 @@
var5.sendPacket(new Packet4UpdateTime(var3.getWorldTime())); var5.sendPacket(new Packet4UpdateTime(var3.getWorldTime()));
Iterator var6 = var2.getActivePotionEffects().iterator(); Iterator var6 = var2.getActivePotionEffects().iterator();
@@ -166,7 +173,8 @@ @@ -166,9 +173,10 @@
} }
var2.func_20057_k(); var2.func_20057_k();
-
+ */ + */
+ ForgeHooksServer.handleLoginPacket(par1Packet1Login, var5, netManager); + ForgeHooksServer.handleLoginPacket(par1Packet1Login, var5, netManager);
FMLServerHandler.instance().handleLogin(par1Packet1Login, netManager, var2);
FMLServerHandler.instance().handleLogin(par1Packet1Login, netManager);
- FMLServerHandler.instance().announceLogin(var2);
} }
this.finishedProcessing = true;