net.minecraft.src.IChunkProvider ichunkprovider = par1World.getChunkProvider();
if (ichunkprovider instanceof ChunkProviderLoadOrGenerate)
{
ChunkProviderLoadOrGenerate chunkproviderloadorgenerate = (ChunkProviderLoadOrGenerate)ichunkprovider;
int i = MathHelper.floor_float((int)thePlayer.posX) >> 4;
int j = MathHelper.floor_float((int)thePlayer.posZ) >> 4;
chunkproviderloadorgenerate.setCurrentChunkOver(i, j);
}
par1World.spawnPlayerWithLoadedChunks(thePlayer);
playerController.func_6473_b(thePlayer);